cancel
Showing results for 
Search instead for 
Did you mean: 

editing xsd file

Former Member
0 Kudos

Hi

I have 2 files of type shown below. I want to include the file 1(one) in file 2 so that when I upload the file 2 schema (xsd type) in message mapping tool it should look like below

UserArea

>PlantDataStorage

>>DeltionFlag_Plant

>>MaximumStoragePeriod

>>PhysicalInventoryIndicator

or

UserArea

>DeltionFlag_Plant

>MaximumStoragePeriod

>PhysicalInventoryIndicator

Can anybody help me how can we achieve this ?? Any help in this regard is highly appreciated

thanks

kumar

File 1 (xs: type)

<xs:element name="PlantDataStorage" type="mm:PlantDataStorageType"> </xs:element>

<xs:complexType name="PlantDataStorageType">

<xs:sequence>

<xs:element name="DeletionFlag_Plant" type="xs:string" minOccurs="0"/>

<xs:element name="MaximumStoragePeriod" type="ns1:MeasureType" minOccurs="0"/>

<xs:element name="PhysicalInventoryIndicator" type="xs:string" minOccurs="0"/>

</xs:sequence>

<xs:attribute name="versionID" type="xs:anySimpleType"> </xs:attribute>

</xs:complexType>

File 2 (xsd:type)

<xsd:complexType name="UserAreaType" block="restriction">

<xsd:sequence>

<xsd:any namespace="##any" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>

</xsd:sequence>

</xsd:complexType>

<xsd:element name="UserArea" type="UserAreaType"> </xsd:element>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

closing the thread

prateek
Active Contributor
0 Kudos

First import file1 under external definition. Use the following in file2

<xsd:include schemaLocation="file1.xsd"/> Also see this

Regards,

Prateek