redice
06-18-2009, 05:32 AM
Hi all,
Right now, each time a new node is added, it'll append on the bottom of the xml file. Example (red node is the newly added node):
<contents>
<Content>
<id>
<name>
<email>
</Content>
<Content>
<id>
<name>
<email>
</Content>
</contents>
How do I append it on top instead? Thus, it'll look something like this:
<contents>
<Content>
<id>
<name>
<email>
</Content>
<Content>
<id>
<name>
<email>
</Content>
</contents>
Currently, I am using .asp to develop the page. I've once wanted to sort the XML when I display it on the page, but research shown I need to use XSLT, which I am reluctant too.
Any advice?
Perhaps I can still append it on the bottom but during display, I sort the "id" descendingly?
Thank you in advance!
Right now, each time a new node is added, it'll append on the bottom of the xml file. Example (red node is the newly added node):
<contents>
<Content>
<id>
<name>
<email>
</Content>
<Content>
<id>
<name>
<email>
</Content>
</contents>
How do I append it on top instead? Thus, it'll look something like this:
<contents>
<Content>
<id>
<name>
<email>
</Content>
<Content>
<id>
<name>
<email>
</Content>
</contents>
Currently, I am using .asp to develop the page. I've once wanted to sort the XML when I display it on the page, but research shown I need to use XSLT, which I am reluctant too.
Any advice?
Perhaps I can still append it on the bottom but during display, I sort the "id" descendingly?
Thank you in advance!