|
||
|
|||
|
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
|
|
||||
|
Hello samiles. Welcome to the Java Programming Forums
![]() 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.
__________________
Don't forget to add code tags around your code: ![]() Forum Tip: Add to peoples reputation ( ) by clicking the button on their useful posts.
|
|
|||
|
Thanks!!
Quote:
Sam |
|
||||
|
No problem samiles,
If this has answered your question, please mark your thread as solved
__________________
Don't forget to add code tags around your code: ![]() Forum Tip: Add to peoples reputation ( ) by clicking the button on their useful posts.
|
|
||||
|
Follow the link in his signature, or i'll just repost it for you
![]() Important: Marking your Thread as SOLVED |
|
|||
|
Quote:
![]() Sam |
|
|||
|
Glad to hear you're using this: I plan to keep it much more aggressively up-to-date than has been the case in the past, but don't hesitate to let me know if you find errors or need clarifications.
|
![]() |
| Tags |
| dom parse, xml |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Java Game Project--Need a Programmer | Takkun | Project Collaboration | 2 | 08-07-2009 12:37 PM |
| Need Help with Programming project | snake101 | Java Theory & Questions | 7 | 10-06-2009 09:35 AM |
| Help with my AR Project | Ciwan | Java Theory & Questions | 12 | 15-02-2009 05:08 PM |
| regarding project Netbeans | haygaurav | Java IDEs | 9 | 09-12-2008 12:14 PM |
| Project help needed | crazydeo | Collections and Generics | 4 | 22-05-2008 03:59 PM |