• Post Reply Bookmark Topic Watch Topic
  • New Topic

read xml file  RSS feed

 
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
 
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
 
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!