Hi Gurdev,

After I set tableNameSpace in my schema to IAR and
http://apache.org/xml/properties/schema/external-schemaLocation to IAR it
resolved one of the problem.

When I was looking more I found that it is giving problem where ever  I have

<xs:external  name="MyElementName" type="MyDefinedDataTypeInTheSchema" />

May be this will give some clue. 

I will try using JAXP too.

Thank you

-Sunitha



-----Original Message-----
From: Gurdev Parmar [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 04, 2003 11:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [xerces] Components from namespace 'null'


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-s
> chemaLocation","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]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to