W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: sorting ?

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Tue, 15 Jan 2002 08:57:36 -0500
To: www-dom@w3.org
Message-ID: <OFEA196C02.75C306CC-ON85256B42.004C68F7@pok.ibm.com>

>is there some built in method in dom for sorting?

No. (You could answer this for yourself quite quickly by glancing through
the DOM spec, you know...)

Simplest solution may be to feed your document through an XSLT stylesheet
which performs the sort you want, then parse that. Some XSLT processors can
produce a DOM-compatable data model as their output, which would save you
the trouble of serializing and re-parsing, though that may be a read-only
subset of the DOM and hence may have to be imported into another
implementation before you can edit it further.

______________________________________
Joe Kesselman  / IBM Research
Received on Tuesday, 15 January 2002 09:49:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT