Hi all:
The folloiwng is a pre-existing xml file. I was wondering how can I insert a element before the first element using xslt?
<XmlFile>
<!-- insert another <tag> element here -->
<tag>
<innerTag>
</innerTag>
</tag>
<tag>
<innerTag>
</innerTag>
</tag>
<tag>
<innerTag>
</innerTag>
</tag>
</XmlFile>
I was thinking of using a for-each loop and test the position = 0, but upon the first occurence of the for-each its already too late. This is a once-off text so I can't combine it with other xslt templates that are already inside the xsl file.
Thanks.