This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes processing XML data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "processing XML data" Watch "processing XML data" New topic
Author

processing XML data

Brandon Broschinsky
Ranch Hand

Joined: Aug 21, 2004
Posts: 41
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.
Julia Reynolds
Ranch Hand

Joined: May 31, 2001
Posts: 123
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
 
jQuery in Action, 2nd edition
 
subject: processing XML data
 
Similar Threads
illegal XML element .......but no error why?
XML help
XML DOM Jaxp Parser
xml's nested same element
adding and removing elements from DOM in java