This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extracting elelents data with kXML

 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to use kXML in an iPAQ application,
How can extract the element information with this API.
For example, if I have
<employee>
<firstName>John</firstName>
<lastName>John</lastName>
<employee>
How can I extract the information in the first na last name to retrieve John and Smith?
Thanks
Mary.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disclaimer: I didn't even compile this so there's absolutely no guarantees that this will work out-of-the-box, but it should give you a general idea of how the pull-based kXML API works...
 
Mary White
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks Lasse for your reply.
Do you know how can I create an org.kxml.kdom.Document object or an org.kxml.kdom.Element object from an xml file.
The methods in these classes would work better for me, since I need to retrive specific elements, without reading the complete xml element by element.
Thanks
Mary.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic