public class XmlValidator
extends java.lang.Object
Constructor and Description |
---|
XmlValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Validates the files specified in the command line.
|
static void |
read(java.io.File xmlFile,
XmlReadOptions readOptions)
Reads through an XML file, throwing an exception if it isn't valid.
|
static java.lang.Throwable |
validate(java.io.File xmlFile)
Reads through an XML file.
|
static java.lang.Throwable |
validate(java.io.File xmlFile,
XmlReadOptions readOptions)
Reads through an XML file.
|
public static void main(java.lang.String[] args)
args
- Names of files to be validated.public static java.lang.Throwable validate(java.io.File xmlFile)
xmlFile
- To be validatedpublic static java.lang.Throwable validate(java.io.File xmlFile, XmlReadOptions readOptions)
xmlFile
- To be validatedreadOptions
- For reading. Will make a difference to what is
considered valid and what isn'tpublic static void read(java.io.File xmlFile, XmlReadOptions readOptions)
xmlFile
- To be validatedreadOptions
- For reading. Will make a difference to what is
considered valid and what isn't