uk.co.demon.ursus.dom
Class NonValidatingDOMParser

java.lang.Object
  |
  +--uk.co.demon.ursus.dom.NonValidatingDOMParser
Direct Known Subclasses:
DOMParser

public class NonValidatingDOMParser
extends java.lang.Object
implements DOMParserWrapper, org.xml.sax.ErrorHandler

Wraps the Xerces DOM parser.


Constructor Summary
NonValidatingDOMParser()
          Default constructor.
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
          Error.
 void fatalError(org.xml.sax.SAXParseException ex)
          Fatal error.
 org.w3c.dom.Document getDocument()
           
 org.w3c.dom.Document parse(org.xml.sax.InputSource source)
          Parses the specified URI and returns the document.
 org.w3c.dom.Document parse(java.lang.String uri)
          Parses the specified URI and returns the document.
 void warning(org.xml.sax.SAXParseException ex)
          Warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonValidatingDOMParser

public NonValidatingDOMParser()
Default constructor.
Method Detail

parse

public org.w3c.dom.Document parse(java.lang.String uri)
                           throws java.lang.Exception
Parses the specified URI and returns the document.
Specified by:
parse in interface DOMParserWrapper

parse

public org.w3c.dom.Document parse(org.xml.sax.InputSource source)
                           throws java.lang.Exception
Parses the specified URI and returns the document.
Specified by:
parse in interface DOMParserWrapper

getDocument

public org.w3c.dom.Document getDocument()

warning

public void warning(org.xml.sax.SAXParseException ex)
Warning.
Specified by:
warning in interface org.xml.sax.ErrorHandler

error

public void error(org.xml.sax.SAXParseException ex)
Error.
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

public void fatalError(org.xml.sax.SAXParseException ex)
                throws org.xml.sax.SAXException
Fatal error.
Specified by:
fatalError in interface org.xml.sax.ErrorHandler