Skip to Content

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

Source XML Structure-Two Nodes with same names

Hi All,

I have a strange situation. I am doing a Webservice to RFC scenario. The Third party vendor provided me with the Source XML fro me to create the datatype.

<?xml version="1.0" encoding="UTF-8"?>

<Envelope version="01.00">

<Sender>

<Id></Id>

<Credential></Credential>

</Sender>

<Recipient>

<Id></Id>

</Recipient>

<TransactInfo transactType="data">

<TransactId></TransactId>

<TimeStamp></TimeStamp>

</TransactInfo>

<Packet>

<PacketInfo packetType="data">

<PacketId>1</PacketId>

<Action></Action>

<Manifest></Manifest>

</PacketInfo>

<Payload><![CDATA[<?xml version="1.0"?>

<DATA_1>

<FIELD1></FIELD1>

<FIELD2></FIELD2>

<FIELD3></FIELD3>

<FIELD4></FIELD4>

<FIELD5></FIELD5>

</DATA_1>]]></Payload>

</Packet>

<Packet>

<PacketInfo packetType="data">

<PacketId>2</PacketId>

<Action></Action>

<Manifest></Manifest>

</PacketInfo>

<Payload><![CDATA[<DATA_2 language="en">

<FIELD1></FIELD1>

<FIELD2></FIELD2>

<FIELD3></FIELD3>

<FIELD4></FIELD4>

<FIELD5></FIELD5>

</DATA_2>]]></Payload>

</Packet>

</Envelope>

As We see Above, There are 2 Nodes named "Packet" at the Same level.

So When I try to create my datatype in XI based on this XML, XI wont allow to create 2 nodes with same names at the same level.

We asked the vendor to change the name of the second Packet to Packet_1, they told they cant change it.

Is there a way in XI to handle this issue??. ie to create 2 nodes with the same name at the same level??

Thanks,

Harsh

Former Member

Helpful Answer

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