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: School Java Project Help (XML and links)

Threaded View

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Solved]School Java Project Help (XML and links)

    Hello everyone.

    I'm pretty much a pure newbie when it comes to Java and OO programming in general. Anyway I have to take a Java class as part of my major and the project is literally stumping me.

    Firstly, the prototype of my program is due before he even teaches us some of the material we need to do it. Hence my following questions. Sorry in advance if I started this thread in the wrong area.

    The project is where we make a program to take a user's input in Town, State form and get the weather for that town. He wants us to use XML documents from NOAA.gov. I know I have to convert the Town, State format into a Latitude, Long type format to plug into the URL to access the XML file at NOAA.

    So firstly... I'm gonna geocode the address. Google geocoding API requires you to send a request via URL to retrieve an XML document. How could I make my Java program execute a URL?

    Secondly how would I access the data off that XML file it returns.

    Like if I sent a request for my hometown of Apollo, PA to the Google geocoding service and it returns an XML document with tons of data... how do I pull that data for use in my program?

    Sorry if I sound like I have no idea what I'm talking about. I don't even require in-depth answers, just get me going in the right direction.

    Thanks guys!
    Last edited by MC2170; March 16th, 2011 at 03:52 PM.


Similar Threads

  1. Java: Links, images, font and divisions with HTML / CSS
    By Cyloc in forum AWT / Java Swing
    Replies: 3
    Last Post: August 2nd, 2011, 12:54 PM
  2. School java project, completely stuck
    By John1818 in forum Java Theory & Questions
    Replies: 0
    Last Post: November 18th, 2010, 04:10 AM
  3. school project
    By robin28 in forum Java Theory & Questions
    Replies: 13
    Last Post: November 12th, 2010, 09:11 AM
  4. School Help
    By JavaNewb in forum Loops & Control Statements
    Replies: 1
    Last Post: March 24th, 2010, 09:31 PM