on ‎2008 Aug 19 9:16 AM
Hi,
Does anyone know how to add a comment line in outgoing XML message from XI? Using graphical mapping or java or adapter module?
Something like .....
<?xml version='1.0' encoding='UTF-8' ?>
<! this is a comment>
<record>
Thanks
Pushpinder
Request clarification before answering.
You can write below statement in simple java mapping
As you want to insert comment before <record>
read entire source structure in string strXMLSource
finalString = strXMLSource.replaceAll("<record>", "<!-- this is a comment--><record>");
in out.write statement pass finalString....
No need to write any parser, just write simple code in execute method
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.