RE: Can XML Data refer to two or more Schema

Suchir,
When you <include> an XML schema into another , the elements of the included
schema become part of the included schema as if you copy-pasted the included
schema into the containing schema.

Of course , the schema that is included should have the same targetNamespace
attribute as the containing schema or no targetNamespace at all. You can
find more about this at
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-include

so , an instance document or other schemas referring to the containing
schema can refer to elements in both the schemas.

Hope this helps,
--navneet

-----Original Message-----
From: suchir sen
To: xmlschema-dev@w3.org
Sent: 5/13/03 10:12 PM
Subject: Can XML Data refer to two or more Schema


Hi All,
I am a student from India. I had created a modular schema wherein I had 
included another schema using the <xs:include> element. Now that I need
a 
XML data which should have elements referring to both these schemas, is
it 
possible to do so, i.e can the XML data file correspond to the schema 
elements from both files?
Thanks a lot,
Suchir.

_________________________________________________________________
IIFA Awards. Vote now. 
http://server1.msn.co.in/msnspecials/iifa2003/index.asp Celebrate Indian

cinema.

Received on Wednesday, 14 May 2003 02:26:55 UTC