Xml post structure
-
Hi Zaus,
I need the following Xml output structure but can’t see the way to achieve it with the ‘Xml root elements’ and with the ‘mapping’:
<?xml version=”1.0″ encoding=”utf-8″?>
<ROOT>
<PERMISSION>
<USERNAME>lalala</USERNAME>
<PASSWORD> lala122</PASSWORD>
</PERMISSION>
<CARD_TYPE>customer</CARD_TYPE>
<CUST_DETAILS>
<P_N>John</P_N>
<MAIL>john@yahoo@com</MAIL>
<REM>Hi there</REM>
<MAKOR>Website</MAKOR>
</CUST_DETAILS>
</ROOT>I need the “</PERMISSION>” at the exact location as seen here, and not at the end of the output, so putting it in the “Xml root elements” doesn’t help.
This is the closest I get:
<?xml version=”1.0″ encoding=”UTF-8″?><root><PERMISSION><CUST_DETAILS>
<USERNAME>lalala</USERNAME>
<PASSWORD> lala122</PASSWORD>
<CARD_TYPE>customer</CARD_TYPE>
<P_N>John</P_N>
<MAIL>john@yahoo@com</MAIL>
<REM>Hi there</REM>
<MAKOR>Website</MAKOR>
</CUST_DETAILS></PERMISSION></root>Any hint on how I can achieve the output structure that I need – (shown above, the first One here)where for example </permission> will appear after </password>, and <CUST_DETAILS> will appear after </CARD_TYPE>?
I do not know JS or PHP too well.
Thank you,
Yaniv
- The topic ‘Xml post structure’ is closed to new replies.