public class XmlnsContentHandler extends ProxyContentHandler
startPrefixMapping(String, String)
calls.handler
Constructor and Description |
---|
XmlnsContentHandler(ContentHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Adds the recorded namespace mappings (if any) as "xmlns" attributes
before passing the call on to the proxied content handler.
|
void |
startPrefixMapping(String prefix,
String uri)
Records the namespace mapping and passes the call to the proxied
content handler.
|
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, toString
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning
public XmlnsContentHandler(ContentHandler handler)
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
startPrefixMapping
in class ProxyContentHandler
prefix
- passed throughuri
- passed throughSAXException
- if an error occurspublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class ProxyContentHandler
namespaceURI
- passed throughlocalName
- passed throughqName
- passed throughatts
- passed throughSAXException
- if an error occursCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.