edu.pdx.cs399J.xml
Class ValidateXml
java.lang.Object
org.xml.sax.helpers.DefaultHandler
edu.pdx.cs399J.xml.ValidateXml
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class ValidateXml
- extends DefaultHandler
This program parses and XML file and validates it for correctness
against its DTD.
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateXml
public ValidateXml()
error
public void error(SAXParseException ex)
- Specified by:
error in interface ErrorHandler- Overrides:
error in class DefaultHandler
fatalError
public void fatalError(SAXParseException ex)
- Specified by:
fatalError in interface ErrorHandler- Overrides:
fatalError in class DefaultHandler
warning
public void warning(SAXParseException ex)
- Specified by:
warning in interface ErrorHandler- Overrides:
warning in class DefaultHandler
main
public static void main(String[] args)
Copyright © 2000-2009 Portland State University. All Rights Reserved.