Skip to Content
0
Former Member
Oct 20, 2010 at 10:55 AM

Dynamically rename the root node of XML based on the child elements

323 Views

Hi Gurus,

Is there any way to rename the root node of the resultant XML after a mapping based on the child elements.

For ex:

consider the following resultant XML after mapping

<result>

<element1> </element1>

<result>

if the element1 is <type> then the output should be

<category>

<type> </type>

</category>

elseif the element1 is <character> then the output should be

<property>

<character> </character>

</property>

Let me know how to do this, either in XSLT or in Graphical mapping.

Thanks,

Prabu