|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.support.XmlUtil
public final class XmlUtil
XmlUtil contains convenience methods for parsing XML documents.
Created on: Oct 21, 2004
Known bugs: None
Thread safe: Yes
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
parseDocument(java.net.URI uri)
parseDocument parses an XML file located at the URI specified and returns the
DOM Document resulting from the parse. |
static org.w3c.dom.Document |
parseString(java.lang.String xmlAsString)
parseString parses an XML file from a java.lang.String and returns
a DOM Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.w3c.dom.Document parseDocument(java.net.URI uri)
throws UrcException
parseDocument parses an XML file located at the URI specified and returns the
DOM Document resulting from the parse.
uri - an URI value; points to the location of the XML document to be parsed.
Document value; a DOM Document created from parsing the XML file.
UrcException - whenever a parse error of any kind occurs, a UrcException will be thrown.
public static org.w3c.dom.Document parseString(java.lang.String xmlAsString)
throws org.xml.sax.SAXException,
java.io.IOException
parseString parses an XML file from a java.lang.String and returns
a DOM Document.
xmlAsString - a String object; the XML document as a string.
Document value; a DOM Document created from parsing the given string.
org.xml.sax.SAXException - if the document is invalid.
java.io.IOException - if the document is unable to be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||