Go Back   Java Programming Forums > Java Standard Edition Programming Help > File I/O & Other I/O Streams

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-06-2009, 02:16 PM
Junior Member
 

Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
samiles is on a distinguished road
Smile 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



Reply With Quote Share this thread on Facebook
Sponsored Links
  #2 (permalink)  
Old 13-06-2009, 02:41 PM
JavaPF's Avatar
mmm.. coffee
 
5 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,211
Thanks: 61
Thanked 66 Times in 64 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Inspired
Default Re: Best way to architect my java and XML project...

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.
Reply With Quote
  #3 (permalink)  
Old 13-06-2009, 02:47 PM
Junior Member
 

Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
samiles is on a distinguished road
Default Re: Best way to architect my java and XML project...

Quote:
Originally Posted by JavaPF View Post
Hello samiles. Welcome to the Java Programming Forums
Thanks!!

Quote:
Originally Posted by JavaPF View Post
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.
Thanks that has helped a lot - I feel I have got more direction now and I can have a crack at it myself!!

Sam
Reply With Quote
  #4 (permalink)  
Old 15-06-2009, 09:23 AM
JavaPF's Avatar
mmm.. coffee
 
5 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,211
Thanks: 61
Thanked 66 Times in 64 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Inspired
Default 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
__________________
Don't forget to add code tags around your code:

Forum Tip: Add to peoples reputation () by clicking the button on their useful posts.
Reply With Quote
  #5 (permalink)  
Old 16-06-2009, 01:34 PM
Junior Member
 

Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
samiles is on a distinguished road
Default Re: Best way to architect my java and XML project...

How do I mark it as solved??
Reply With Quote
  #6 (permalink)  
Old 16-06-2009, 01:34 PM
Freaky Chris's Avatar
Senile Half-Wit
 
8 Highscores

Join Date: Mar 2009
Location: UK
Posts: 530
Thanks: 2
Thanked 60 Times in 56 Posts
Freaky Chris will become famous soon enoughFreaky Chris will become famous soon enough

I'm feeling Mellow
Default Re: Best way to architect my java and XML project...

Follow the link in his signature, or i'll just repost it for you

Important: Marking your Thread as SOLVED
__________________
chris[at]javaprogrammingforums[dot]com

University of Wales, Bangor
Reply With Quote
  #7 (permalink)  
Old 16-06-2009, 01:43 PM
Junior Member
 

Join Date: Jun 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
samiles is on a distinguished road
Default Re: Best way to architect my java and XML project...

Quote:
Originally Posted by Freaky Chris View Post
Follow the link in his signature, or i'll just repost it for you

Important: Marking your Thread as SOLVED
Oh yeah thanks... Don't know how I missed that

Sam
Reply With Quote
  #8 (permalink)  
Old 13-10-2009, 01:44 AM
Junior Member
 

Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
quarifkil is on a distinguished road
Default Re: Best way to architect my java and XML project...

Quote:
Originally Posted by samiles View Post
Oh yeah thanks... Don't know how I missed that

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.
Reply With Quote
Reply

Tags
dom parse, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java actionlistener java actionlistener jbutton addactionlistener addactionlistener java avatar hardware id convert double to integer java double format java double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java hardware id avatar java 2 dimensional arraylist java 2d arraylist java actionlistener java addactionlistener java button actionlistener java convert double to int java double format java double to int java double to integer java for beginner eclippse java format double java forum java forums java get mouse position java jbutton java list to map java mouse position java programming forum java programming forums java sendkeys java.lang.reflect.invocationtargetexception java.util.arraylist jbutton actionlistener jbutton java jtextarea font size programming forums string to int java two dimensional arraylist java writing apps for ipod touch

All times are GMT. The time now is 05:42 PM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.