Re: [xml] sorting in XML
- From: John Fleck <jfleck inkstain net>
- To: Eric Cheong <ECheong ebridgesoft com>
- Cc: xml gnome org
- Subject: Re: [xml] sorting in XML
- Date: 08 Jan 2003 19:31:16 -0700
On Wed, 2003-01-08 at 08:43, Eric Cheong wrote:
Is there anyway to sort the XML element based on an attribute?
e.g:
<Order>
<Customer ID="001", Name="ABC", OrderDate = "01/01/2002"/>
<Customer ID="002", Name="ABD", OrderDate = "03/01/2002"/>
<Customer ID="003", Name="ABE", OrderDate = "02/01/2002"/>
</Order>
Can we sort the above XML doc based on OrderDate attribute? Thanks.
This list is for development and use specifically of libmxl, rather than
general xml questions.
That said, you probably want to us xslt's xsl:sort function.
Cheers,
John
--
John Fleck
jfleck inkstain net (h) jfleck abqjournal com (w)
http://www.inkstain.net http://www.abqjournal.com
"Sometimes, a diner is all about the mac and cheese."
- Zippy the Pinhead
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]