Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

processing XML data

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am currently writing an address book type program. I am wanting to use an XML file to read and write data to. I have gone through some tutorials on DOM and JDOM. If i have an entry set up like below

<AddressBook>
<entry>
<fName>bob</fName>
<lName>howser</LName>
</entry>
...
...
...
</AddressBook>
Where the ... are more entry's
in my program i want to display one entry and have navigation buttons the user can press to move to the next entry. Would it be possibe to navigate the XML file in this way. I don't have any actual code yet for my program, I have done some tutorials on sun to get a basic understanding of this. Any help is greatly appreciated.
 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think they do something like what you are describing in the w3c
xml tutorial with xsl.

http://www.w3schools.com/xml/default.asp

Julia
reply
    Bookmark Topic Watch Topic
  • New Topic