You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Sunitha Muthireddy <sm...@arccorp.com> on 2003/12/04 19:17:42 UTC
[xerces] Components from namespace 'null'
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-schemaL
ocation","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
Re: [xerces] Components from namespace 'null'
Posted by Gurdev Parmar <Gu...@oracle.com>.
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: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org