Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Advice on sorting and formatting output from XOM

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Orenchak, James" <James.Orenchak AT norcom.de>
  • To: "'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Advice on sorting and formatting output from XOM
  • Date: Wed, 11 Jun 2003 05:23:27 +0200

Hallo,

I'm starting to work with the XOM API. Thanks Harold, for creating it and
thanks Ken Cochrane for the fine introduction page in internet! I have a
xml file which gets randomly updated. In production I'll probably have a
java bean holding the information that the xml file currently holds. I want
the output to be sorted according to the value of a certain child element.
Here's a very short example of the input data:

<?xml version="1.0"?>
<importantdates>
<boughthouse>
<date month="December" day="1" year="2002"/>
<time hour="10" minute="17" second="33" zone="CET"/>
</boughthouse>
<metwife>
<date month="June" day="1" year="1986"/>
<time hour="22" minute="17" second="33" zone="CET"/>
</metwife>
<born>
<date month="May" day="14" year="1960"/>
<time hour="14" minute="15" second="03" zone="EST"/>
</born>

What's the best way to sort this data by date and time, so the output is
chronological? I could do it with XSLT or with Java code. What do the
experts suggest?

Mit freundlichen Grüßen / Best Regards

James Orenchak
NorCom Information Technology AG
Solmsstraße 18
D-60486 Frankfurt
Tel + 49 (0) 69 589 96 199 James.Orenchak AT norcom.de
Fax+ 49(0) 69 589 96 111 www.norcom.de

"This email and any attachments contains privileged and confidential
information intended only for the use of the addressee(s). If you are not an
intended recipient of this email, you are hereby notified that any
dissemination, copying or use of information within it is strictly
prohibited. If you received this email in error or without authorisation,
please notify us immediately by reply e-mail and delete the e-mail from your
system. If you need any further assistance, please contact us under
webmaster AT norcom.de"





  • [XOM-interest] Advice on sorting and formatting output from XOM, Orenchak, James, 06/10/2003

Archive powered by MHonArc 2.6.24.

Top of Page