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.
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.