public class XSDValidator
extends java.lang.Object
Constructor and Description |
---|
XSDValidator()
Constructor for oracle.xml.XSDValidator.
|
Modifier and Type | Method and Description |
---|---|
XMLError |
getError()
gets the XMLError object for this object.
|
java.util.Vector |
getStackList()
Gets the List of Tree Paths in the XMLDocument which leads to the node that encountered a validation error.
|
void |
setError(XMLError err)
Sets the XMLError object for this object.
|
void |
setSchema(XMLSchema xmlsch)
Sets the XMLSchema object for this object.
|
void |
validate(java.io.InputStream is)
Validates the InputStream containing the XML instance document against the XMLSchema object.
|
void |
validate(java.net.URL url)
Validates the URL containing the XML instance document against the XMLSchema object.
|
void |
validate(XMLDocument xmldoc)
Validates an XMLDocument against the XMLSchema object.
|
public XSDValidator() throws XSDException
XSDException
public void validate(XMLDocument xmldoc) throws XSDException, SAXException, java.io.IOException
xmldoc
- -- Parsed XMLDocumentXSDException
SAXException
java.io.IOException
public void validate(java.io.InputStream is) throws XSDException, SAXException, java.io.IOException
xmldoc
- -- Parsed XMLDocumentXSDException
SAXException
java.io.IOException
public void validate(java.net.URL url) throws XSDException, SAXException, java.io.IOException
xmldoc
- -- Parsed XMLDocumentXSDException
SAXException
java.io.IOException
public void setSchema(XMLSchema xmlsch)
xmlsch
- -- XMLSchema objectpublic void setError(XMLError err)
err
- -- XMLError objectpublic XMLError getError()
public java.util.Vector getStackList()