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

read xml file

 
Henk Rog
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I have an XML-file that looks (for example) like this:
<data>
<name>Henk</name>
<gender>Male</gender>
</data>
How can I read in the name (Henk) into a String?
Any examples?

Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are two articles that include sample code for parsing XML on J2ME with kXML:
Parsing XML in J2ME
XML and Java Language Programming for Wireless Devices
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic