HexaDecimal Error in XML Files
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
Hi all, I am using this code to retrive the Viewsource content of page(Page content will be showed in XML). It was working well. But now I face one problem , the XML contain any special hexadecimal value then it display an error
Function GetXML(ByVal strTypeId As String) As String
Dim xmlRef As New MSXML2.XMLHTTPClass Dim strUrl As String="Test.Asp" Try Console.WriteLine(strUrl.Trim) xmlRef.open("GET", strUrl.Trim, False) xmlRef.send() GetXML = xmlRef.responseText GetXMLDoc(-1) 'http://msdn2.microsoft.com/en-us/library/k1y7hyy9(vs.71).aspx If xmlRef.statusText = "OK" Then Return GetXML Else 'Return GetXML = "False" End If Catch ex As Exception 'Return GetXML = "False" End Try End Function
Error : "'?', hexadecimal value 0xFFFF, is an invalid character." Hw to solve this one Thanks Dana