Hi all,
Can anyone help with this? I would like to extract the attributes from a XML node and then transform them back to XML as elements using XSLT?
<unsorted>
<office title="Lowe Worldwide" ceo="Stephen" address ="23 Sloane Avenue" city="London" country="USA" postcode="SW3 3PP" tel="0208 999 9999" homepage="http://www.testing.com " logoCol= "10" />
</unsorted>
to
<unsorted>
<office>
<title><![CDATA[Lowe Worldwide]]></title>
<ceo><![CDATA[Stephen]]></ceo>
<address><![CDATA[23 Sloane Avenue]]></address>
<city><![CDATA[London]]></city>
<country><![CDATA[USA]]></country>
<postcode><![CDATA[SW3 3PP]]></postcode>
<telephone><![CDATA[+0208 999 9999]]></telephone>
<homepage><![CDATA[http://www.testing.com]]></homepage>
<logoCol><![CDATA[10]]></logoCol>
</office>
</unsorted>
Can anyone help with this? I would like to extract the attributes from a XML node and then transform them back to XML as elements using XSLT?
<unsorted>
<office title="Lowe Worldwide" ceo="Stephen" address ="23 Sloane Avenue" city="London" country="USA" postcode="SW3 3PP" tel="0208 999 9999" homepage="http://www.testing.com " logoCol= "10" />
</unsorted>
to
<unsorted>
<office>
<title><![CDATA[Lowe Worldwide]]></title>
<ceo><![CDATA[Stephen]]></ceo>
<address><![CDATA[23 Sloane Avenue]]></address>
<city><![CDATA[London]]></city>
<country><![CDATA[USA]]></country>
<postcode><![CDATA[SW3 3PP]]></postcode>
<telephone><![CDATA[+0208 999 9999]]></telephone>
<homepage><![CDATA[http://www.testing.com]]></homepage>
<logoCol><![CDATA[10]]></logoCol>
</office>
</unsorted>
Comment