Best way to architect my java and XML project...
Hi,
I am very new to java programming and was looking for some help with the best way to make my project.
I want to have a basic XML file to be parsed:
<xml>
<books>
<book>
<title>LOTR</title>
<link>.../1.xml</link>
</book>
<book>
<title>Bambi</title>
<link>2.xml</link>
</book>
..etc..
</books>
</xml>
I want the title to displayed to the user in a list, and then when they click an option I want to grab the relevant file, 2.xml for bambi, then parse that file and display to the user.
2.xml:
<xml>
<book>
<element1>title</element1>
<element2>dev</element2>
<element3>pub</element3>
<element4>pages</element4>
...etc...
</book>
</xml>
What is the best method to achieve this??
Thank you very much for your help,
Sam
Re: Best way to architect my java and XML project...
Hello samiles. Welcome to the Java Programming Forums :D
Take a look at this tutorial about DOM parse:
http://www.javaprogrammingforums.com...dom-parse.html
This is what I use when working with XML.
Re: Best way to architect my java and XML project...
Quote:
Originally Posted by
JavaPF
Hello samiles. Welcome to the Java Programming Forums :D
Thanks!!
Quote:
Originally Posted by
JavaPF
Thanks that has helped a lot - I feel I have got more direction now and I can have a crack at it myself!!
Sam
Re: Best way to architect my java and XML project...
No problem samiles,
If this has answered your question, please mark your thread as solved :)
Re: Best way to architect my java and XML project...
How do I mark it as solved??
Re: Best way to architect my java and XML project...
Follow the link in his signature, or i'll just repost it for you :)
http://www.javaprogrammingforums.com...d.html#post561
Re: Best way to architect my java and XML project...
Quote:
Originally Posted by
Freaky Chris
Oh yeah thanks... Don't know how I missed that :)
Sam