frenchxmlnewbie
Technical User
Hello
I would like to split the following code:
<code>
<topic>
<text value="My Topic" />
<ap:Task DurationUnit="urn:mindjet:Hour" TaskPercentage="50" TaskPriority="urn:mindjetrio1" Dirty="0000000000000001" DurationHours="3" StartDate="2009-09-15T11:00:49" DeadlineDate="2009-10-13T11:00:49" Resources="François Guillaumin"/>
</topic>
</code>
getting all attribute names, and create in the result as many atributes as elements:
<code>
<node text="My Topic">
<attribute Name="DurationUnit" Value="urn:mindjet:Hour" />
<attribute Name="TaskPercentage" Value="50" />
...
</node>
</code>
Thanks
I would like to split the following code:
<code>
<topic>
<text value="My Topic" />
<ap:Task DurationUnit="urn:mindjet:Hour" TaskPercentage="50" TaskPriority="urn:mindjetrio1" Dirty="0000000000000001" DurationHours="3" StartDate="2009-09-15T11:00:49" DeadlineDate="2009-10-13T11:00:49" Resources="François Guillaumin"/>
</topic>
</code>
getting all attribute names, and create in the result as many atributes as elements:
<code>
<node text="My Topic">
<attribute Name="DurationUnit" Value="urn:mindjet:Hour" />
<attribute Name="TaskPercentage" Value="50" />
...
</node>
</code>
Thanks