public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (isStartElementOpen) { outputStream.write(CLOSE_ELEMENT); } outputStream.write(OPEN_START_ELEMENT); outputStream.write(qName.getBytes(XMLConstants.DEFAULT_XML_ENCODING)); isStartElementOpen = true; // Handle attributes handleAttributes(atts); // Handle prefix mappings writePrefixMappings(); } catch (IOException e) { throw XMLMarshalException.marshalException(e); } }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (isStartElementOpen) { outputStreamWrite(CLOSE_ELEMENT); } outputStreamWrite(OPEN_START_ELEMENT); outputStreamWrite(qName.getBytes(Constants.DEFAULT_XML_ENCODING)); isStartElementOpen = true; // Handle attributes handleAttributes(atts); // Handle prefix mappings writePrefixMappings(); } catch (IOException e) { throw XMLMarshalException.marshalException(e); } }
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { try { if (isStartElementOpen) { outputStreamWrite(CLOSE_ELEMENT); } outputStreamWrite(OPEN_START_ELEMENT); outputStreamWrite(qName.getBytes(Constants.DEFAULT_XML_ENCODING)); isStartElementOpen = true; // Handle attributes handleAttributes(atts); // Handle prefix mappings writePrefixMappings(); } catch (IOException e) { throw XMLMarshalException.marshalException(e); } }