org.mortbay.xml
public class XmlParser extends Object
By default, the parser is created as a validating parser. This can be changed by setting the "org.mortbay.xml.XmlParser.NotValidating" system property to true.
Version: $Id: XmlParser.java,v 1.21 2005/10/25 07:53:22 gregwilkins Exp $
| Nested Class Summary | |
|---|---|
| static class | XmlParser.Attribute
XML Attribute. |
| static class | XmlParser.Node
XML Node. |
| Constructor Summary | |
|---|---|
| XmlParser()
Construct | |
| XmlParser(boolean validating)
Constructor. | |
| Method Summary | |
|---|---|
| String | getXpath() |
| XmlParser.Node | parse(InputSource source) |
| XmlParser.Node | parse(String url)
Parse string URL. |
| XmlParser.Node | parse(File file)
Parse File. |
| XmlParser.Node | parse(InputStream in)
Parse InputStream. |
| XmlParser.Node | parse(URL url)
Parse URL. |
| void | redirectEntity(String name, URL entity) |
| void | setXpath(String xpath) Set an XPath
A very simple subset of xpath is supported to select a partial
tree. |
Returns: Returns the xpath.
Parameters: name entity
Parameters: xpath The xpath to set.