We have a requirement to generate an XML file from a table input data.
We have four fields coming from my table input out of which three fields should be mapped to one and the same XML tag in the generated XML.
Eg:
The three input fields are Phone_No, Mob_No and Fax_No.
The output tag is 'ContactNumber'.
The XML should look like
Code: Select all
<Person>
<ContactID>ABCD</ContactID>
<ContactMethod>
<ContactNumber>1234</ContactNumber>
<ContactType>Phone</ContactType>
<ContactNumber>4567</ContactNumber>
<ContactType>Mob</ContactType>
<ContactNumber>9876</ContactNumber>
<ContactType>Fax</ContactType>
</ContactMethod>
</Person>
Please let me know if more information is needed.