Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading XML with LWP

Status
Not open for further replies.

Supra

Programmer
Dec 6, 2000
422
US
Hi all,

I'm trying to load an XML file, but the file is being converted to HTML because it uses an XSL. Rather than parse out the HTML returned, I want to see the XML that the XSL is transforming. Is there a way I can get to it?

Example: Load " with LWP.. you'll get a rather large HTML page.

Now open the same URL in Internet Explorer, and View Source. You'll get the beautifully formatted XML used to create this page. I understand that IE is probably just pulling this from its cache, but surely when I use LWP, there must be a handler I can set to also grab this?

Any help would be very appreciated.
 
Nevermind, I figured out that you need to pass in a suitable useragent, otherwise you're not given the pretty XML ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top