Welcome to WebmasterWorld Guest from 54.156.92.140

Forum Moderators: open

Message Too Old, No Replies

Process XML coming from the URL

XML processing

     
6:00 pm on Jan 31, 2014 (gmt 0)

New User

5+ Year Member

joined:June 22, 2008
posts: 8
votes: 0


Hello Guys,


I need help to process xml(Output coming from the url that is printed on the page). I want to process that and want to save the tag values in some variable. I have searched everywhere but didnt get any help. I dont want to read and xml file and process that. I want something to do with the output coming from url. Example USPS API - We are passing some product details to the API and it returns the shipping details and some other details along with that and print all those on the page.


Thanks in advance.
3:07 pm on Mar 11, 2014 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member httpwebwitch is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 29, 2003
posts:4061
votes: 0


Hi adcetera,

It actually sounds to me like you *do* want to read the XML and process it. But you're getting the XML from a URL, not from a file saved locally. Correct?

Without knowing more about your site and how it's built, it's hard to offer any concrete advice. But I'd recommend the best approach will be to use a server-side programming language (e.g. PHP, Ruby, Node, Java, or whatever you have) to request the XML from the USPS API, parse it, extract the data you want, and then display that in your page of HTML output.

It shouldn't be difficult to find a tutorial explaining how to do that, somewhere on the web.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members