public class XMLValidator2
extends java.lang.Object
Constructor and Description |
---|
XMLValidator2(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrors()
Returns errors.
|
int |
isSchemaValid(CLOB xml, java.lang.String schema) |
int |
isSchemaValid(OracleClob xml, java.lang.String schema) |
void |
schemaValidate(CLOB xml, java.lang.String schema) |
void |
schemaValidate(OracleClob xml, java.lang.String schema) |
public java.lang.String getErrors()
public int isSchemaValid(CLOB xml, java.lang.String schema)
xml
- The CLOB object for the XML to be validated.schema
- The URL for the XSD to be validated.public int isSchemaValid(OracleClob xml, java.lang.String schema)
xml
- The CLOB object for the XML to be validated.schema
- The URL for the XSD to be validated.public void schemaValidate(CLOB xml, java.lang.String schema) throws XMLParseException, org.xml.sax.SAXException, java.io.IOException, XSDException, java.sql.SQLException, java.lang.Exception
xml
- The CLOB object for the XML to be validated.schema
- The URL for the XSD to be validated.XMLParseException
org.xml.sax.SAXException
java.io.IOException
XSDException
java.sql.SQLException
java.lang.Exception
public void schemaValidate(OracleClob xml, java.lang.String schema) throws XMLParseException, org.xml.sax.SAXException, java.io.IOException, XSDException, java.sql.SQLException, java.lang.Exception
xml
- The OracleClob object for the XML to be validated.schema
- The URL for the XSD to be validated.XMLParseException
org.xml.sax.SAXException
java.io.IOException
XSDException
java.sql.SQLException
java.lang.Exception