public class XMLParser
extends java.lang.Object
| Constructor and Description | 
|---|
| XMLParser()Constructs a non-validating SAX parser. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | getErrorMessage()Gets an enhanced error message when parsing of a file failed. | 
| void | parse(java.lang.String uri,
     org.xml.sax.ContentHandler dh)Parses the XML file at the specified URI. | 
public XMLParser()
          throws org.xml.sax.SAXException,
                 javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException - Problem with the JVM's XML parser
         configuration.org.xml.sax.SAXException - The SAX parser could not be initialized.public void parse(java.lang.String uri,
                  org.xml.sax.ContentHandler dh)
           throws java.lang.Exception
uri - URI of the XML file to parse.dh - Default handler to process the XML elementsjava.lang.Exception - A problem occurred while parsingpublic java.lang.String getErrorMessage()