Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: validating XML with XmlValidatingReader against schema that use xs:include

From: "Priya Lakshminarayanan [MSFT]" <priyal@------.---------.--->
To: NULL
Date: 4/4/2005 10:56:00 AM
Can you copy b.xsd to a different location and verify whether it loads? Is
the location "http://some.place.here/schema/B.xsd" resolvable?

Thanks,
Priya

<davidmcb@p...> wrote in message
news:1112631106.582844.117750@z......
> Thanks, but still no joy.  I'm starting to wonder if it's the way my
> schema files are set up:
>
> the XML file looks like this:
>
> <?xml version='1.0' encoding='utf-8'?>
> <config vend='lw'  lwlid='100005'
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://some.place.here/schema/A.xsd">
>
> A.xsd looks like this:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:include schemaLocation="http://some.place.here/schema/B.xsd">
>
> B.xsd looks like this:
>
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
> As I said, if I copy everything from B.xsd and paste it into A.xsd and
> drop the 'xs:include', then I'm golden and everything works great.  But
> as soon as I try to break out some types into B.xsd and use
> 'xs:include' then I start getting "element is not declared" errors.
>




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent