dakrin wrote:
When I do "View Source" in Internet Explorer the XML shows up, so I'm
assuming that means its applying the xsl client side.
Here's an example site that does what i'm talking about:
http://armory.worldofwarcraft.com/ar...1&sf=rank&sd=a
The might sniff the user agent server side and depending on that serve
XML or HTML, try it like this
HttpWebRequest httpRequest =
(HttpWebRequest)WebRequest.Create(@"http://armory.worldofwarcraft.com/arena-ladder.xml?b=Stormstrike&ts=3&p=1&sf=rank&sd=a");
httpRequest.UserAgent =
@"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
HttpWebResponse httpResponse =
(HttpWebResponse)httpRequest.GetResponse();
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(httpResponse.GetResponseStream()) ;
httpResponse.Close();
xmlDocument.Save(Console.Out);
that way I get XML starting with
<?xml-stylesheet type="text/xsl" href="/layout/arena-ladder.xsl"?>
<page globalSearch="1" lang="en_us" requestUrl="/arena-ladder.xml">
It might also be necessary or helpful to set the Accept HTTP request
header but that depends on what they are doing on the server, it is not
really an XML problem but rather a HTTP problem.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/