W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Schema being imported multiple times

From: Nguyen, Thang <nguyet3@anz.com>
Date: Wed, 10 Oct 2001 03:52:38 -0400 (EDT)
Message-ID: <75FC0175625CD511888A00034723082D03FC7D@exgau34024.mel530exc.au.anz>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Hi, just wondering if anyone can help me out regarding validating xml files
schema files that has multiple imports.

This is what I have:


Schema1.xsd  imports Common.xsd

Schema2.xsd imports both Common.xsd and Schema1.xsd

I'm using MSXML4.dll (Visual Basic 6) and schema validation.  When I create
Schema1.xml and validate it with VB, it's fine but when I create Schema2.xml
and validate, it comes up with an error   "  The '{urn:Common}
RevisionNumber' element has already been declared"
(but the validation is successful withing XML Spy)

This is because Common.xsd is being pulled into the SchemaCache twice (once
from Schema2.xsd and once from Schema1.xsd).

is there a way to work around this error?

Received on Wednesday, 10 October 2001 10:27:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC