Adding new node to xml as a first child using xslt

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,
I am new to xslt. Below is my Xml:

<root id=1 name=abc>

<child position=1>
...........
</child>
<child position=2>
-------
</child>
<child position=3>
-------
</child>
</root>

I would like to add a new node between <root> and <child position=1> as below using xslt.
<root id=1 name=abc>
<new node>
---------
</new node>


<child position=1>
...........
</child>
<child position=2>
-------
</child>
<child position=3>
-------
</child>
</root>

Can any body help me?





View the full article
 
Back
Top