HexaDecimal Error in XML Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • danasegarane
    New Member
    • Mar 2007
    • 32

    HexaDecimal Error in XML Files

    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

    [PHP] Function GetXML(ByVal strTypeId As String) As String

    Dim xmlRef As New MSXML2.XMLHTTPC lass
    Dim strUrl As String="Test.As p"


    Try
    Console.WriteLi ne(strUrl.Trim)
    xmlRef.open("GE T", strUrl.Trim, False)
    xmlRef.send()
    GetXML = xmlRef.response Text
    GetXMLDoc(-1)
    'http://msdn2.microsoft .com/en-us/library/k1y7hyy9(vs.71) .aspx
    If xmlRef.statusTe xt = "OK" Then
    Return GetXML
    Else
    'Return GetXML = "False"
    End If

    Catch ex As Exception
    'Return GetXML = "False"
    End Try

    End Function[/PHP]

    Error : "'?', hexadecimal value 0xFFFF, is an invalid character."

    Hw to solve this one

    Thanks
    Dana
Working...