Peers,
Really Appreciate your help here
Currently, I have to map a SAP IDoc to an XML.
The DTD of the XML has an element called InvoiceGroup
InvoiceGroup (InvoiceHeader, InvoiceDetail*, InvoiceSummary)+
When I load the DTD into I.S., I.S. create a document type
InvoiceGroup
InvoiceHeader <- Document List
InvoiceDetail <- Document List
InvoiceSummary <- Document List
When I map the data from SAP IDoc to the XML, the following XML will be
generated (as an example)
<invoicegroup>
<invoiceheader></invoiceheader>
<invoiceheader></invoiceheader>
<invoicedetail></invoicedetail>
<invoicedetall></invoicedetail>
<invoicesummary></invoicesummary>
<invoicesummary></invoicesummary>
</invoicegroup>
which is not valid according to the DTD.
The XML requried should look like
<invoicegroup>
<invoiceheader></invoiceheader>
<invoicedetall></invoicedetail>
<invoicesummary></invoicesummary>
<invoiceheader></invoiceheader>
<invoicedetail></invoicedetail>
<invoicesummary></invoicesummary>
</invoicegroup>
The schema generated by I.S. is correct. However, I have a hard time
playing around with the document type to generate an actual XML to satisfy the DTD.
The DTD is given by a government department, thus I cannot modify it
Thanks in advance
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB