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
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 13-06-2009, 02:41 PM
JavaPF's Avatar
mmm.. coffee
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,581
Thanks: 103
Thanked 93 Times in 86 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 Stressed
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 syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

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
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,581
Thanks: 103
Thanked 93 Times in 86 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 Stressed
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 syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

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
 

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

I'm feeling Cheerful
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 4 14-06-2010 10:47 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 04:08 PM
regarding project Netbeans haygaurav Java IDEs 9 09-12-2008 11:14 AM
Project help needed crazydeo Collections and Generics 4 22-05-2008 03:59 PM


100 most searched terms
Search Cloud
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int 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.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

All times are GMT. The time now is 09:23 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.