|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.wangs.xmlutil.XMLValidator
This XMLValidator is a tool to validate an XML file against its refenrenced XML Schema.
Command line usage: java [-classpath <path>/xerces.jar:<path>/xalan.jar:<path>/jtestcase.jar] jtestcase.XMLValidator <xml-file-name> API usage: boolean valid = XMLValidator.validate(String fileName);
Field Summary | |
protected static java.util.Properties |
_props
|
protected static java.lang.String |
mParserVersion
|
Constructor Summary | |
XMLValidator()
Prepares validating features from property file |
Method Summary | |
static java.lang.String |
_getParserInformation()
Provides information about the used XML parser. |
static void |
main(java.lang.String[] args)
|
static boolean |
validate(java.lang.String fileName)
Validates XML file using either DOMBuilder or SAXParser, based on property "USE_DOMBUILDER". |
boolean |
validateWithDOMBuilder(java.io.InputStream is)
Validates XML file using DOMBuilder. |
boolean |
validateWithSAXParser(java.io.InputStream is)
Validates XML file using SAXParser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Properties _props
protected static java.lang.String mParserVersion
Constructor Detail |
public XMLValidator()
Method Detail |
public static void main(java.lang.String[] args)
public static boolean validate(java.lang.String fileName) throws XMLUtilException
XMLUtilException
public boolean validateWithDOMBuilder(java.io.InputStream is)
public boolean validateWithSAXParser(java.io.InputStream is)
public static java.lang.String _getParserInformation() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |