Controlling XML elements order

  • Follow


Hi I'm returning an XML to my clients (SOAP).  Now I want to order the
items in my XML (I dont want my clients to sort it) is there any API
in DOM that I can use for sorting the elements some way ? or simply
preserving the sort order of that that I added items to the DOM tree?
(I'm adding the items in a sorted way however when I look at the XML
generated its not sorted)
0
Reply tomerbd (24) 9/27/2004 12:21:59 PM

Tomer Ben-David wrote:
> Hi I'm returning an XML to my clients (SOAP).  Now I want to order the
> items in my XML (I dont want my clients to sort it) is there any API
> in DOM that I can use for sorting the elements some way ? or simply
> preserving the sort order of that that I added items to the DOM tree?
> (I'm adding the items in a sorted way however when I look at the XML
> generated its not sorted)

You might be able to implement an XSLT stylesheet that outputs XML, and 
use the <xsl:sort> element.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~   /   \  /         ~        Live from Montgomery, AL!       ~
~  /     \/       o  ~                                        ~
~ /      /\   -   |  ~          LXi0007@Netscape.net          ~
~ _____ /  \      |  ~ http://www.knology.net/~mopsmom/daniel ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~         I do not read e-mail at the above address           ~
~    Please see website if you wish to contact me privately   ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e    ~
~ h---- r+++ z++++                                            ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0
Reply lxi0007 (1830) 9/30/2004 2:51:16 AM


1 Replies
30 Views

(page loaded in 0.097 seconds)

Similiar Articles:








7/28/2012 9:14:50 AM


Reply: