|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.xml.XmlParser
public class XmlParser
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. This can be changed by setting the "org.mortbay.xml.XmlParser.NotValidating" system property to true.
Nested Class Summary | |
---|---|
static class |
XmlParser.Attribute
XML Attribute. |
static class |
XmlParser.Node
XML Node. |
Constructor Summary | |
---|---|
XmlParser()
Constructor. |
Method Summary | |
---|---|
static java.lang.String |
normalize(java.lang.String text)
Return the given text as XML string. |
XmlParser.Node |
parse(org.xml.sax.InputSource source)
|
XmlParser.Node |
parse(java.io.InputStream in)
Parse InputStream. |
XmlParser.Node |
parse(java.lang.String url)
Parse string URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlParser()
Method Detail |
---|
public XmlParser.Node parse(org.xml.sax.InputSource source) throws java.io.IOException, org.xml.sax.SAXException
source
- the document source.
java.io.IOException
- error while opening the stream.
org.xml.sax.SAXException
- error while parsing.public XmlParser.Node parse(java.lang.String url) throws java.io.IOException, org.xml.sax.SAXException
url
- the document source.
java.io.IOException
- error while opening the stream.
org.xml.sax.SAXException
- error while parsing.public XmlParser.Node parse(java.io.InputStream in) throws java.io.IOException, org.xml.sax.SAXException
in
- the document source.
java.io.IOException
- error while opening the stream.
org.xml.sax.SAXException
- error while parsing.public static java.lang.String normalize(java.lang.String text)
text
- the text containing non serializable tags.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |