go41

extracting xml data using java

von Joern am 7. Okt. 2010 | Keine Kommentare

I just started a new job and they threw me into a project that requires xml knowledge. Unfortunately, I know nothing about xml, so maybe this forum can help.
I’m dealing with Google Maps and when you send them a geocoding url, it displays text in xml format. I need to use java to somehow extract some of the data from that result. Any advice or ideas would be appreciated!
For some context:

Say you were to enter "http://maps.google.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false" into your browser (or any address in its place). It would display an xml file with all of the information about that location. What I need to extract are the formatted address and the lat/long coordinates. I have no clue where to start.
Thanks for your help!

(von: riya)

Hier noch 1 weitere Ergebnisse dieses Threads:

Re: extracting xml data using java :: Reply by weblink

7. Okt. 2010 (von: weblink)

Depending on which Java JDK version you are using, the latter version has those XML related API built-in. All you need to learn is how to use them in your Java code.Web Design and Development Company, Web Development Blogs Weiterlesen…

Autor:

Du findest mich auch auf Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.

weitere forum Beiträge: