Java Mailing List Archive

http://www.junlu.com/

Home » JDOM Projects »

[jdom-interest] Re: Reading XML with JDOM

Praveen Gattu

2008-10-02

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a XML as below. There is always "only one" employee node in the XML. So rather than iterating through the nodes, I want to read the lastname and ssn directly, while ignoring the firstname. What is the best way to do this in JDOM? My most important criteria is speed. We will be processing about a 8,500 of such XML documents per minute  (multi-threaded of course) and need something efficient and fast. I appreciate any help you can offer in this regard.

<response>
  <employee>
    <firstname>John</firstname>
    <lastname>Smith</lastname>
    <ssn>111-11-1111</ssn>
  </employee>
</response>

--
Thanks,
Praveen




--
Thanks,
Praveen Gattu
303-880-7455
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.