[jdom-interest] Re: Reading XML with JDOM

Praveen Gattu pgattu at gmail.com
Thu Oct 2 11:29:53 PDT 2008

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

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

Praveen Gattu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20081002/203581fd/attachment.htm

More information about the jdom-interest mailing list