on 11-13-2012 8:56 AM
Hi friends,
can anyone help me on this regard?
input xml structure seems like below: We have classes and subclasses to identify and classify in a segment as requirement.
<root>
<item>
<class>
<id>A</id>
<value>1001</value>
</class>
</item>
<item>
<class>
<id>B</id>
<value>1002</value>
</class>
</item>
<item>
<class>
<id>C</id>
<value>1003</value>
</class>
</item>
<item>
<subclass>
<id>A</id>
<category>Business</category>
</subclass>
</item>
<item>
<subclass>
<id>B</id>
<category>economy</category>
</subclass>
</item>
<item>
<subclass>
<id>C</id>
<category>student</category>
</subclass>
</item>
<item>
<subclass>
<id>C</id>
<category>soldier</category>
</subclass>
</item>
</root>
Needed Output xml structure shown below:
<root>
<item>
<class>
<id>A</id>
<value>1001</value>
</class>
<subclass>
<id>A</id>
<category>Business</category>
</subclass>
</item>
<item>
<class>
<id>B</id>
<value>1002</value>
</class>
<subclass>
<id>B</id>
<category>economy</category>
</subclass>
</item>
<item>
<class>
<id>C</id>
<value>1003</value>
</class>
<subclass>
<id>C</id>
<category>student</category>
</subclass>
<subclass>
<id>C</id>
<category>soldier</category>
</subclass>
</item>
</root>
thank you,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peter,
You can with "formatByExample" Node function.
Regards,
Sree.
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 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.