| java.lang.Object org.mortbay.xml.XmlParser
XmlParser | public class XmlParser (Code) | | XML Parser wrapper. This class wraps any standard JAXP1.1 parser with convieniant error and
entity handlers and a mini dom-like document tree.
By default, the parser is created as a validating parser only if xerces is present. This can be
configured by setting the "org.mortbay.xml.XmlParser.Validating" system property.
author: Greg Wilkins (gregw) |
Inner Class :public static class Attribute | |
XmlParser | public XmlParser()(Code) | | Construct
|
XmlParser | public XmlParser(boolean validating)(Code) | | Constructor.
|
addContentHandler | public synchronized void addContentHandler(String trigger, ContentHandler observer)(Code) | | Add a ContentHandler. Add an additional _content handler that is triggered on a tag name. SAX
events are passed to the ContentHandler provided from a matching start element to the
corresponding end element. Only a single _content handler can be registered against each tag.
Parameters: trigger - Tag local or q name. Parameters: observer - SAX ContentHandler |
redirectEntity | public synchronized void redirectEntity(String name, URL entity)(Code) | | Parameters: name - Parameters: entity - |
setValidating | public void setValidating(boolean validating)(Code) | | |
setXpath | public void setXpath(String xpath)(Code) | | Set an XPath A very simple subset of xpath is supported to select a partial tree. Currently
only path like "/node1/nodeA | /node1/nodeB" are supported.
Parameters: xpath - The xpath to set. |
|
|