homepage Welcome to WebmasterWorld Guest from 174.129.130.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
Process XML coming from the URL
XML processing
adcetera




msg:4641595
 6:00 pm on Jan 31, 2014 (gmt 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.

 

httpwebwitch




msg:4653025
 3:07 pm on Mar 11, 2014 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved