4 messages in com.googlegroups.google-gadgets-api_IG_FetchXmlContent and user agent?
FromSent OnAttachments
Gerard30 Jan 2008 17:43 
lxp14930 Jan 2008 19:43 
Gerard31 Jan 2008 03:55 
Gryphon31 Jan 2008 07:35 
Subject:_IG_FetchXmlContent and user agent?
From:Gerard (gera@gmail.com)
Date:01/30/2008 05:43:33 PM
List:com.googlegroups.google-gadgets-api

I'm trying to extract data from an xml page. An example URL would be http://eu.wowarmory.com/character-sheet.xml?r=Aggramar&n=Bubonica

When I look at the page source in IE or Firefox, it seems to be a pure xml document, with an xml stylesheet referenced so that the browsers can pretty it all up. However the response to the _IG_FetchXmlContent is coming back as a string, and when I look at it it seems to be an xhtml page complete with doctype, formatting, javascript, etc. etc.

The only things I can think of are either that Blizzard is sending back different responses based on the user agent, and that IE and Firefox are getting the xml whereas whatever user agent _IG_FetchXmlContent sends, if any, is getting a fallback xhtml page, or that _IG_FetchXmlContent is processing the stylesheet instruction and applying the stylesheet before it returns the document to the calling code.

Either way, I want it to stop! Anyone come across this problem before?

Cheers, Ged.