| java.lang.Object org.xml.sax.helpers.XMLFilterImpl de.danet.an.util.sax.XmlnsUrisPatcher
XmlnsUrisPatcher | public class XmlnsUrisPatcher extends XMLFilterImpl (Code) | | This class provides a simple filter that can be used to convert the
SAX events reported for attributes with qualified name "xmlns" or
prefix "xmlns:" to the later XML namespaces specification. This is
intended to be used in conjunction with parsers that do not
support the "xmlns-uris" feature.
author: Michael Lipp version: $Revision: 1.2 $ |
Constructor Summary | |
public | XmlnsUrisPatcher() Creates an instance of XmlnsUrisPatcher
with all attributes initialized to default values. | public | XmlnsUrisPatcher(XMLReader parent) Creates an instance of XmlnsUrisPatcher
with the specified parent. |
Method Summary | |
public void | startElement(String namespaceURI, String localName, String qName, Attributes atts) Receive notification of the beginning of an element.
Parameters: namespaceURI - The Namespace URI, or the empty string if theelement has no Namespace URI or if Namespaceprocessing is not being performed. Parameters: localName - The local name (without prefix), or theempty string if Namespace processing is not beingperformed. Parameters: qName - The qualified name (with prefix), or theempty string if qualified names are not available. Parameters: atts - The attributes attached to the element. |
XmlnsUrisPatcher | public XmlnsUrisPatcher()(Code) | | Creates an instance of XmlnsUrisPatcher
with all attributes initialized to default values.
|
XmlnsUrisPatcher | public XmlnsUrisPatcher(XMLReader parent)(Code) | | Creates an instance of XmlnsUrisPatcher
with the specified parent.
Parameters: parent - the parent XMLReader. |
startElement | public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException(Code) | | Receive notification of the beginning of an element.
Parameters: namespaceURI - The Namespace URI, or the empty string if theelement has no Namespace URI or if Namespaceprocessing is not being performed. Parameters: localName - The local name (without prefix), or theempty string if Namespace processing is not beingperformed. Parameters: qName - The qualified name (with prefix), or theempty string if qualified names are not available. Parameters: atts - The attributes attached to the element. Ifthere are no attributes, it shall be an emptyAttributes object. throws: SAXException - Any SAX exception, possiblywrapping another exception. See Also: XmlnsUrisPatcher.endElement See Also: org.xml.sax.Attributes |
Methods inherited from org.xml.sax.helpers.XMLFilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|