Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Merge xsd:import into one schema Merge xsd:import into one schemaTo: NULL Date: 11/12/2008 12:28:00 PM Hello,
I have a schema which uses a <xsd:import> element:
<xs:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/">
<xs:import
schemaLocation="http://localhost:8731/Design_Time_Addresses/MyServer/MyService/?xsd=xsd2"
namespace="http://schemas.datacontract.org/2004/07/MyServer"/>
<xs:element name="MyMethod">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="composite" nillable="true"
type="q1:CompositeType"
xmlns:q1="http://schemas.datacontract.org/2004/07/MyServer"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
the xsd2 is:
<xs:schema elementFormDefault="qualified"
targetNamespace="http://schemas.datacontract.org/2004/07/MyServer"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://schemas.datacontract.org/2004/07/MyServer">
<xs:complexType name="CompositeType">
<xs:sequence>
<xs:element minOccurs="0" name="StringOne" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="StringTwo" nillable="true"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="CompositeType" nillable="true"
type="tns:CompositeType"/>
</xs:schema>
My question is this one: how could I include the xsd2 schema in the previous
one, so that I can omit the <xs:import> reference? (Say my parser does not
support xs:imports/includes)
Thanks for any ideas,
Jan
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
