public void endElement(String namespaceURI, String localName, String qName) throws SAXException { try { isLastEventText = false; numberOfTabs--; if (isStartElementOpen) { outputStream.write(CLOSE_EMPTY_ELEMENT); isStartElementOpen = false; complexType = true; return; } if (complexType) { outputStream.write(CR); for (int x = 0; x < numberOfTabs; x++) { outputStream.write(TAB); } } else { complexType = true; } super.endElement(namespaceURI, localName, qName); } catch (IOException e) { throw XMLMarshalException.marshalException(e); } }
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { isLastEventText = false; numberOfTabs--; if (isStartElementOpen) { outputStreamWrite((byte) '/'); outputStreamWrite((byte) '>'); isStartElementOpen = false; complexType = true; return; } if (complexType) { outputStreamWrite(cr); outputStreamWriteTab(); } else { complexType = true; } super.endElement(namespaceURI, localName, qName); }
public void endElement(String namespaceURI, String localName, String qName) throws SAXException { isLastEventText = false; numberOfTabs--; if (isStartElementOpen) { outputStreamWrite((byte) '/'); outputStreamWrite((byte) '>'); isStartElementOpen = false; complexType = true; return; } if (complexType) { outputStreamWrite(cr); outputStreamWriteTab(); } else { complexType = true; } super.endElement(namespaceURI, localName, qName); }