Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: Best way to architect my java and XML project...

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    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.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  4. #4
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 294 Times in 227 Posts
    Blog Entries
    4

    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
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

  5. #5
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Best way to architect my java and XML project...

    How do I mark it as solved??

  6. #6
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    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

    http://www.javaprogrammingforums.com...d.html#post561

  7. #7
    Junior Member
    Join Date
    Jun 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

    http://www.javaprogrammingforums.com...d.html#post561
    Oh yeah thanks... Don't know how I missed that

    Sam

Similar Threads

  1. Programmer for a Java based game project
    By Takkun in forum Project Collaboration
    Replies: 4
    Last Post: June 14th, 2010, 05:47 PM
  2. Program to take name as input and write it backwards
    By snake101 in forum Java Theory & Questions
    Replies: 7
    Last Post: June 10th, 2009, 04:35 AM
  3. Adventure ride project
    By Ciwan in forum Java Theory & Questions
    Replies: 12
    Last Post: February 15th, 2009, 12:08 PM
  4. Database connection without using netbease
    By haygaurav in forum Java IDEs
    Replies: 9
    Last Post: December 9th, 2008, 07:14 AM
  5. Replies: 4
    Last Post: May 22nd, 2008, 10:59 AM

Tags for this Thread