Skip to Content
avatar image
Former Member

Converting XML file to DTD or XSD file

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Mar 13, 2008 at 03:10 PM

    Hi,

    Have you tried Stylus Studio or XMLSPY to do this ?

    Cheers

    Colin.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 13, 2008 at 03:17 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 13, 2008 at 03:26 PM

    hi,

    check this website.

    you can create your xsd/dtd online.

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

    regards,

    robin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 13, 2008 at 03:48 PM

    Hi Mariel,

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

    data-type-for-xml-file

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 13, 2008 at 04:10 PM

    Mariel,

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

    raj.

    Add comment
    10|10000 characters needed characters exceeded