Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Merge xsd:import into one schema

From: =?iso-8859-2?Q?Jan_Ku=E8era?= <kucera@---------.-->
To: 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 



transparent
Print
Mail
Like It
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