on 12-01-2015 12:32 PM
Hi experts,
is possible to put the entire input payload in a single output node manteining the xml tag structure?
My need is to put this input payload:
<InitialVehicleInformation>
<Header>
<Reference/>
<Version/>
......
</Header>
<Body>
<Field1/>
<Field2/>
...
</Body>
</InitialVehicleInformation>
into a <node> </node> contained in the output structure.
Result must be like this:
<node>
<InitialVehicleInformation>
<Header>
<Reference/>
.......
</Header>
<Body>
<Field1/>
.......
</Body>
</InitialVehicleInformation>
</node>
Thanks
Fabio
Hi Fabio,
If your PI version is below than PI 7.1, you always can use a XSL mapping:
An easy XSL code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<node>
<xsl:copy-of select="//InitialVehicleInformation"/>
</node>
</xsl:template>
</xsl:stylesheet>
On other cases, the previous suggestions are the best.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.