··············break;
············case "quantity":
··············orderLine.setQuantity(Integer.valueOf(attrs.getValue(i)));
··············break;
··········}
········}
········break;
······case "unit_price":
········dealingWithUnitPrice = true;
········unitPriceBuffer = new StringBuffer();
········break;
····}
··}
··@Override
··public void characters(char[] ch, int start, int length) throws SAXException {
······if (dealingWithUnitPrice)
········unitPriceBuffer.append(ch, start, length);
··}
··@Override
··public void endElement(String namespaceURI, String localName, String qualifiedName)
·························throws SAXException {
····switch (qualifiedName) {
······case "order_line":
········orderLines.add(orderLine);
········break;
······case "unit_price":
········orderLine.setUnitPrice(Double.valueOf(unitPriceBuffer.toString()));
········dealingWithUnitPrice = false;
········break;
····}