org.openware.util
Class NonValidatingDOMParser

java.lang.Object
  |
  +--org.openware.util.NonValidatingDOMParser
All Implemented Interfaces:
org.xml.sax.ErrorHandler
Direct Known Subclasses:
DOMParser

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

Wraps the Xerces DOM parser.

Version:
 

Constructor Summary
NonValidatingDOMParser()
          Default constructor.
 
Method Summary
 void error(org.xml.sax.SAXParseException ex)
          Error.
 void fatalError(org.xml.sax.SAXParseException ex)
          Fatal error.
 boolean hasErrors()
           
 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 org.xml.sax.SAXException,
                                  java.io.IOException
Parses the specified URI and returns the document.

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

hasErrors

public boolean hasErrors()


Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.