Hi Sunitha, I am not sure of the IAR you have mentioned in the value of the property. Could you check that.
-Gurdev
Sunitha Muthireddy wrote:
I am trying to validate the my xml with external schema validation.
*My setting* are :
parser.setFeature("http://apache.org/xml/features/validation/schema", *true*);
parser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation","IAR http://localhost:7001/IAR/Transaction.xsd");
*My Schema* is defined as :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace="IAR" elementFormDefault="qualified">
<xs:element name="Transaction">
<xs:annotation>.
.
.
.
</xs:schema>
When I run I get this *error message* :
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
[Error] :1:86: src-resolve.4: Components from namespace 'null' are not referenceable from schema document 'http://localhost:7001/IAR/Transaction.xsd'.
I get similar error when I run the sample Xerces files (personal.xml and personal.xsd) as input to my program.
What is that I am doing wrong?
Thanks
-Sunitha
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
