Package oracle.spatial.util
Class XMLValidator2
- java.lang.Object
-
- oracle.spatial.util.XMLValidator2
-
public class XMLValidator2 extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description XMLValidator2(java.sql.Connection conn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetErrors()Returns errors.intisSchemaValid(oracle.jdbc.OracleClob xml, java.lang.String schema)intisSchemaValid(oracle.sql.CLOB xml, java.lang.String schema)voidschemaValidate(oracle.jdbc.OracleClob xml, java.lang.String schema)voidschemaValidate(oracle.sql.CLOB xml, java.lang.String schema)
-
-
-
Method Detail
-
getErrors
public java.lang.String getErrors()
Returns errors.- Returns:
- String
-
isSchemaValid
public int isSchemaValid(oracle.sql.CLOB xml, java.lang.String schema)- Parameters:
xml- The CLOB object for the XML to be validated.schema- The URL for the XSD to be validated.- Returns:
- 1 if valid; else 0.
-
isSchemaValid
public int isSchemaValid(oracle.jdbc.OracleClob xml, java.lang.String schema)- Parameters:
xml- The CLOB object for the XML to be validated.schema- The URL for the XSD to be validated.- Returns:
- 1 if valid; else 0.
-
schemaValidate
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- Parameters:
xml- The CLOB object for the XML to be validated.schema- The URL for the XSD to be validated.- Throws:
oracle.xml.parser.v2.XMLParseExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionoracle.xml.parser.schema.XSDExceptionjava.sql.SQLExceptionjava.lang.Exception
-
schemaValidate
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- Parameters:
xml- The OracleClob object for the XML to be validated.schema- The URL for the XSD to be validated.- Throws:
oracle.xml.parser.v2.XMLParseExceptionorg.xml.sax.SAXExceptionjava.io.IOExceptionoracle.xml.parser.schema.XSDExceptionjava.sql.SQLExceptionjava.lang.Exception
-
-