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.String
getErrors()
Returns errors.int
isSchemaValid(oracle.jdbc.OracleClob xml, java.lang.String schema)
int
isSchemaValid(oracle.sql.CLOB xml, java.lang.String schema)
void
schemaValidate(oracle.jdbc.OracleClob xml, java.lang.String schema)
void
schemaValidate(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.XMLParseException
org.xml.sax.SAXException
java.io.IOException
oracle.xml.parser.schema.XSDException
java.sql.SQLException
java.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.XMLParseException
org.xml.sax.SAXException
java.io.IOException
oracle.xml.parser.schema.XSDException
java.sql.SQLException
java.lang.Exception
-
-