|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.forms.util.xmltools.XMLValidator
Used to validate XML against the Forms XMLSchema. The schema is generated
dynamically using the oracle.forms.util.xmltools.SchemaGenerator class and
does not require the schema file to be present in the file system.
The tool can be used on the command line or called from another Java class
using the appropriate methods.
To use this tool the user will need the Forms Jdapi (Java Design-time API) on
their classpath.
| Constructor Summary | |
XMLValidator()
Creates a new XMLValidator object ready to validate XML at URLs given to the validateXML() methods. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Main method takes a filename, or filenames of XML files and validates the XML against the Forms XMLSchema. |
oracle.xml.parser.v2.XMLDocument |
validateXML(java.net.URL url)
Validates the XML at the given URL against the Forms model XMLSchema. |
oracle.xml.parser.v2.XMLDocument |
validateXML(java.net.URL url,
java.io.OutputStream out)
Validates the XML at the given URL against the Forms model XMLSchema. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLValidator()
| Method Detail |
public oracle.xml.parser.v2.XMLDocument validateXML(java.net.URL url)
throws oracle.xml.parser.v2.XMLParseException,
oracle.xml.parser.schema.XSDException,
org.xml.sax.SAXException,
java.io.IOException
url - for the XML to validate.
java.io.IOException - if the URL isn't valid.
org.xml.sax.SAXException - if the XML isn't valid.
oracle.xml.parser.v2.XMLParseException - if the XML isn't valid.
oracle.xml.parser.schema.XSDException - if there was an error in the Schema Builder.
public oracle.xml.parser.v2.XMLDocument validateXML(java.net.URL url,
java.io.OutputStream out)
throws oracle.xml.parser.v2.XMLParseException,
oracle.xml.parser.schema.XSDException,
org.xml.sax.SAXException,
java.io.IOException
url - for the XML to validate.out - the output stream for the parser's errors.
java.io.IOException - if the URL isn't valid.
org.xml.sax.SAXException - if the XML isn't valid.
oracle.xml.parser.v2.XMLParseException - if the XML isn't valid.
oracle.xml.parser.schema.XSDException - if there was an error in the Schema Builder.public static void main(java.lang.String[] args)
args - the filename(s) to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||