cancel
Showing results for 
Search instead for 
Did you mean: 

Converting XML file to DTD or XSD file

Former Member
0 Kudos

Hi everyone,

We're currently doing an IDOC to File. The file should be in XML format. Right now, we have a sample XML file. We need to convert the file to DTD or XSD and then upload this in XI to be able to get it structure. We've tried different conversion tools to do this, however, the converted DTD/XSD file still has errors when we load it to XI. What we're thinking is to create a data type to achieve this. These are some of the fields in the file.

<messageHeader creationDate>

<catellae:gTTSDataDelivery creationDate="X" (...)>

*/<catellae:(…)>/<txnId>

*/<catellae:(…)>/<items>/<item>/<quantity>

*/<catellae:(…)>/<items>/<item>/<unitOfMea>

*/<catellae:(…)>/<items>/<item>/<prodDesc>/<matType>

*/<catellae:(…)>/<shipToAddress>/<nameAndAddress>/<city>

*/<catellae:(…)>/<shipToAddress>/<contactInformation>/<communicationChannel (…)

It seems that there are more than 3 nodes. And in XI, only three nodes are allowed. Could you tell us how should we create the data type for this? Thanks in advance!

Accepted Solutions (0)

Answers (5)

Answers (5)

justin_santhanam
Active Contributor
0 Kudos

Mariel,

What is this catellae:(…) ? Is this is ur structure? XI won't allow Special characters like : while creating Data type.

raj.

Former Member
0 Kudos

Hi Mariel,

Refer to the below link for conversion of XML to Xsd using Altova XML Spy.

For altova free trial Download:

http://www.altova.com/download.html

Please let me know if u need furthur information.

Thanks,

Bhargav.

Note:Award points if found useful

Former Member
0 Kudos

hi,

check this website.

you can create your xsd/dtd online.

http://www.hitsw.com/xml_utilites/

regards,

robin

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Have you tried Stylus Studio or XMLSPY to do this ?

Cheers

Colin.