Hello,
I currently display a list of orders on an HTML page, and use XSLT to transform the incoming XML into a particular sort order.
Is it possible to sort an XMLDocument in Javascript using some transform function?
Customer now wants the data from the page copied to the clipboard so it can be pasted into another app.
I'm using javascript to get the fields they want available in the other application. The probelm is the XML document I've got in the script is unsorted. Is it possible to sort an XMLDocument in Javascript? If so, how would I achieve this?
I want to sort by ascending order number.
XML:
<orders>
<order>
<orderid>4</orderid>
<customer>bert</customer>
</order>
<order>
<orderid>2</orderid>
<customer>big bird</customer>
</order>
<order>
<orderid>1</orderid>
<customer>mr. snuffleupagus</customer>
</order>
<order>
<orderid>5</orderid>
<customer>guy smiley</customer>
</order>
</orders>
thanks in advance
I currently display a list of orders on an HTML page, and use XSLT to transform the incoming XML into a particular sort order.
Is it possible to sort an XMLDocument in Javascript using some transform function?
Customer now wants the data from the page copied to the clipboard so it can be pasted into another app.
I'm using javascript to get the fields they want available in the other application. The probelm is the XML document I've got in the script is unsorted. Is it possible to sort an XMLDocument in Javascript? If so, how would I achieve this?
I want to sort by ascending order number.
XML:
<orders>
<order>
<orderid>4</orderid>
<customer>bert</customer>
</order>
<order>
<orderid>2</orderid>
<customer>big bird</customer>
</order>
<order>
<orderid>1</orderid>
<customer>mr. snuffleupagus</customer>
</order>
<order>
<orderid>5</orderid>
<customer>guy smiley</customer>
</order>
</orders>
thanks in advance