S
Scott McNair
Hi,
I'm trying to read a bit of XML from the following site:
http://www.wowarmory.com/character-sheet.xml?r=Bladefist&n=Coquette
The xml document relies heavily on xsl... however if you view the source of
the page you'll see that it is indeed raw xml that's being served.
I'm using the following code to pull the xml document in string format:
Public Shared Function GetPageAsString(ByVal address As Uri) As String
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim reader As StreamReader
Dim result As String
Try
request = DirectCast(WebRequest.Create(address), HttpWebRequest)
response = DirectCast(request.GetResponse(), HttpWebResponse)
reader = New StreamReader(response.GetResponseStream())
result = reader.ReadToEnd()
Finally
If Not response Is Nothing Then response.Close()
End Try
Return result
End Function
However when I view the resulting string value, it shows the xsl-parsed
code. How can I retrieve just the raw xml?
Regards,
Scott M.
I'm trying to read a bit of XML from the following site:
http://www.wowarmory.com/character-sheet.xml?r=Bladefist&n=Coquette
The xml document relies heavily on xsl... however if you view the source of
the page you'll see that it is indeed raw xml that's being served.
I'm using the following code to pull the xml document in string format:
Public Shared Function GetPageAsString(ByVal address As Uri) As String
Dim request As HttpWebRequest
Dim response As HttpWebResponse = Nothing
Dim reader As StreamReader
Dim result As String
Try
request = DirectCast(WebRequest.Create(address), HttpWebRequest)
response = DirectCast(request.GetResponse(), HttpWebResponse)
reader = New StreamReader(response.GetResponseStream())
result = reader.ReadToEnd()
Finally
If Not response Is Nothing Then response.Close()
End Try
Return result
End Function
However when I view the resulting string value, it shows the xsl-parsed
code. How can I retrieve just the raw xml?
Regards,
Scott M.