• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help: read directly from URL  RSS feed

 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have one request from our manager to get response from URL. The response will be xml format.

However, I used the following code which only read the response line by line. It is possible to parse the whole response as xml format in buffer?

The response will be something like


Since it is a small task and I have very short time to do this, can anyone provide any idea? I will really appreciate it.

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a *lot* of different ways to parse XML with Java.
 
Sam Sunamin
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your reply.

I got the sample code from sun.

http://developers.sun.com/sw/building/codesamples/sax/

I think this will solve my problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!