public class XMLValidator2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap |
cache |
protected java.io.ByteArrayOutputStream |
errors |
protected org.xml.sax.EntityResolver |
resolver |
Constructor and Description |
---|
XMLValidator2(java.sql.Connection conn) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrors()
Returns errors.
|
int |
isSchemaValid(oracle.sql.CLOB xml,
java.lang.String schema) |
int |
isSchemaValid(oracle.jdbc.OracleClob xml,
java.lang.String schema) |
void |
schemaValidate(oracle.sql.CLOB xml,
java.lang.String schema) |
void |
schemaValidate(oracle.jdbc.OracleClob xml,
java.lang.String schema) |
protected java.util.HashMap cache
protected org.xml.sax.EntityResolver resolver
protected java.io.ByteArrayOutputStream errors
public java.lang.String getErrors()
public int isSchemaValid(oracle.sql.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(oracle.jdbc.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(oracle.sql.CLOB xml, java.lang.String schema) throws oracle.xml.parser.v2.XMLParseException, org.xml.sax.SAXException, java.io.IOException, oracle.xml.parser.schema.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.oracle.xml.parser.v2.XMLParseException
org.xml.sax.SAXException
java.io.IOException
oracle.xml.parser.schema.XSDException
java.sql.SQLException
java.lang.Exception
public void schemaValidate(oracle.jdbc.OracleClob xml, java.lang.String schema) throws oracle.xml.parser.v2.XMLParseException, org.xml.sax.SAXException, java.io.IOException, oracle.xml.parser.schema.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.oracle.xml.parser.v2.XMLParseException
org.xml.sax.SAXException
java.io.IOException
oracle.xml.parser.schema.XSDException
java.sql.SQLException
java.lang.Exception