public String getPrefix(String namespaceURI) throws XMLStreamException { return namespaceContext.getPrefix(namespaceURI); }
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException { final String prefix = namespaceContext.getPrefix(namespaceURI); if (prefix == null) { // TODO throw new XMLStreamException(); } writeAttribute(prefix, namespaceURI, localName, value); }
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException { namespaceContext.pushContext(); depth++; final String prefix = namespaceContext.getPrefix(namespaceURI); if (prefix == null) { throw new XMLStreamException(); } namespaceContext.pushContext(); storeQualifiedName(T_ELEMENT_LN, prefix, namespaceURI, localName); }