private void emitFirstTag() throws SAXException { if (m_firstElementName != null) { if (m_wrapped_handler_not_initialized) { initStreamOutput(); m_wrapped_handler_not_initialized = false; } // Output first tag m_handler.startElement(m_firstElementURI, null, m_firstElementName, m_attributes); // don't need the collected attributes of the first element anymore. m_attributes = null; // Output namespaces of first tag if (m_namespacePrefix != null) { final int n = m_namespacePrefix.size(); for (int i = 0; i < n; i++) { final String prefix = (String) m_namespacePrefix.elementAt(i); final String uri = (String) m_namespaceURI.elementAt(i); m_handler.startPrefixMapping(prefix, uri, false); } m_namespacePrefix = null; m_namespaceURI = null; } m_firstTagNotEmitted = false; } }
handler.startElement(namespace, qname.substring(index+1), qname); handler.namespaceAfterStartElement(prefix, namespace); prefix = generatePrefix(); qname = prefix + ':' + qname; handler.startElement(namespace, qname, qname); handler.namespaceAfterStartElement(prefix, namespace); handler.startElement(null, null, qname);
private void emitFirstTag() throws SAXException { if (m_firstElementName != null) { if (m_wrapped_handler_not_initialized) { initStreamOutput(); m_wrapped_handler_not_initialized = false; } // Output first tag m_handler.startElement(m_firstElementURI, null, m_firstElementName, m_attributes); // don't need the collected attributes of the first element anymore. m_attributes = null; // Output namespaces of first tag if (m_namespacePrefix != null) { final int n = m_namespacePrefix.size(); for (int i = 0; i < n; i++) { final String prefix = (String) m_namespacePrefix.elementAt(i); final String uri = (String) m_namespaceURI.elementAt(i); m_handler.startPrefixMapping(prefix, uri, false); } m_namespacePrefix = null; m_namespaceURI = null; } m_firstTagNotEmitted = false; } }
handler.startElement(name); return name; handler.startElement(name); handler.namespaceAfterStartElement(EMPTY_STR, uri); return name; handler.startElement(qName); int prefixIndex = qName.indexOf(':'); String prefix;
handler.startElement(name); return name; handler.startElement(name); handler.namespaceAfterStartElement(EMPTY_STR, uri); return name; handler.startElement(qName); int prefixIndex = qName.indexOf(':'); String prefix;
_handler.startElement(null, null, qname);
m_handler.startElement(namespaceURI, localName, elementName, atts); m_handler.startElement(namespaceURI, localName, elementName, atts);
fSerializer.startElement( node.getNamespaceURI(), node.getLocalName(),
m_handler.startElement(namespaceURI, localName, elementName, atts); m_handler.startElement(namespaceURI, localName, elementName, atts);
fSerializer.startElement( node.getNamespaceURI(), node.getLocalName(),
rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName), nodeName);
rhandler.startElement(nodeNamespace, QName.getLocalPart(nodeName), nodeName);
m_handler.startElement(namespace, localName, elemName); boolean hasNSDecls = false; DTM dtm = m_dtm;
m_handler.startElement(namespace, localName, elemName); boolean hasNSDecls = false; DTM dtm = m_dtm;
rhandler.startElement(getNamespace(), getLocalName(), getRawName());
rhandler.startElement(getNamespace(), getLocalName(), getRawName());
rth.startElement(ns, localName, dtm.getNodeNameX(node));
rth.startElement(ns, localName, dtm.getNodeNameX(node));
private void emitFirstTag() throws SAXException { if (m_firstElementName != null) { if (m_wrapped_handler_not_initialized) { initStreamOutput(); m_wrapped_handler_not_initialized = false; } // Output first tag m_handler.startElement(m_firstElementURI, null, m_firstElementName, m_attributes); // don't need the collected attributes of the first element anymore. m_attributes = null; // Output namespaces of first tag if (m_namespacePrefix != null) { final int n = m_namespacePrefix.size(); for (int i = 0; i < n; i++) { final String prefix = (String) m_namespacePrefix.elementAt(i); final String uri = (String) m_namespaceURI.elementAt(i); m_handler.startPrefixMapping(prefix, uri, false); } m_namespacePrefix = null; m_namespaceURI = null; } m_firstTagNotEmitted = false; } }
private void emitFirstTag() throws SAXException { if (m_firstElementName != null) { if (m_wrapped_handler_not_initialized) { initStreamOutput(); m_wrapped_handler_not_initialized = false; } // Output first tag m_handler.startElement(m_firstElementURI, null, m_firstElementName, m_attributes); // don't need the collected attributes of the first element anymore. m_attributes = null; // Output namespaces of first tag if (m_namespacePrefix != null) { final int n = m_namespacePrefix.size(); for (int i = 0; i < n; i++) { final String prefix = (String) m_namespacePrefix.elementAt(i); final String uri = (String) m_namespaceURI.elementAt(i); m_handler.startPrefixMapping(prefix, uri, false); } m_namespacePrefix = null; m_namespaceURI = null; } m_firstTagNotEmitted = false; } }