Steve,
This probably belongs on an XML/XSLT discussion list, but, you can easily do
this when processing an XML document using the XSL transformation language
(XSLT). For an example, look at this online material that discusses the
xsl:sort element and how to use it to sort nodes in your output XML document
from an XSL transformation:
http://metalab.unc.edu/xml/books/bible/updates/14.html#Sorting
If you are not familiar with XSLT at all, you can start with this online
source as an introduction. It is a pretty good one for that purpose.
Hope this helps,
Mike Van Riper
[EMAIL PROTECTED]
> -----Original Message-----
> From: Steve Bayouk [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 23, 2000 11:42 AM
> To: [EMAIL PROTECTED]
> Subject: Sorting Nodes
>
>
> I have an xml document that has a list of nodes, each have
> two children.
> (see example below) What I would like to do is write a
> method to sort the
> nodes so that they are listed alphabetically by <artist>.
> Has anyone done
> anything similar to this? If so, can you give me some tips to
> move me in the
> right direction. Thank You.
>
>
> Example:
> <archive>
> <interview>
> <artist></artist>
> <filename></filename>
> </interview>
> <interview>
> <artist></artist>
> <filename></filename>
> </interview>
> <archive>
>
>
>
>
>
> Steve Bayouk
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets