Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

XML file - adding attributes of complex data type

Hi

The scenario I have is to create an XML file from an IDoc and send via FTP.

The issue I cannot resolve is the root elemnt (dcsmergedata) of the output needs have the following attributes:

xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"

xsi:noNamespaceSchemaLocation="../lib/interface_address.xsd"

XSD sample

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="dcsmergedata" type="dcsmergedatatype"/>

<xsd:complexType name="dcsmergedatatype">

Required XML output

<dcsmergedata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../lib/interface_address.xsd">

Thanks

Former Member
Not what you were looking for? View more on this topic or Ask a question