Sandy...

Thanks for your advice and for your quick response.

I have verified that the local copy of the xsd is identical to the external
copy located on the Internet.  But, I am now receiving this error:

  ERROR:   src-import.0: Failed to read imported schema document
'file:///B:\xml\xsd\xml.xsd'.

This xml schema is imported by another schema which is located and pointed
to in the same location and found properly by the parser.  As I mentioned
earlier, I am overriding the xsi:schemaLocation attribute value of the root
element by use of the
http://apache.org/xml/properties/schema/external-schemaLocation property.  I
believe that the documentation states that the external-schemaLocation
property is handled in the same fashion for imported schemas as well.  

Any other suggestions?  I've been stumped by this one for some time now.

Thanks again,
Lori Morealli  






-----Original Message-----
From: Sandy Gao [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: XML namespace issue......


This error is reported when you have something like
 <someelement xmlns:xml="someuri" ...>

Is it possible that your local schemas aren't exactly the same as those on
the internet? Since you only see this error when using local schemas, I
suspect your local copy contains the above mentioned error.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



 

                      "Morealli, Lori"

                      <[EMAIL PROTECTED]        To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>,       
                      >
"'[email protected]'" <[email protected]>

                                               cc:

                      06/11/2003 10:05         Subject:  XML namespace
issue......                                              
                      AM

                      Please respond to

                      xerces-j-user

 

 




Xerces Members:

I am having a problem parsing an xml instance that contains in imported xml
schema.  I have set the parser to look for the xml schema locally, via the
external schema location property.  I get the following error:
  ERROR: The prefix "xml" cannot be bound to any namespace other than its
usual namespace; neither can the namespace for "xml" be bound to any prefix
other than "xml".
The only workaround to this is to set the parser to look for the xml schema
on the Internet. Can anyone tell me if there is a certain property or
feature that I must set that will allow the parser to parse against a local
xml schema so that an internet connection will not be necessary?


~~~~~~~~~~~~~~~~~~~~~~
Lori Morealli
Software Engineer
Concurrent Technologies Corporation
Johnstown, PA 15904
814-269-6564
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
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]

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

Reply via email to