Results 1 to 3 of 3

Thread: Xml

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108

    Xml

    Guys,

    Given that the incoming data is <HEAD><MESSAGE>This is a Testing Message <From Someone></MESSAGE></HEAD> , how do I fix the problem when "<>" is in between XML tags?

    Code:
    If objXML.loadXML(strData) Then
        For i = 0 To objXML.documentElement.childNodes.Length - 1
            Select Case objXML.documentElement.childNodes(i).nodeName
                Case "MESSAGE"
                    strMessage = objXML.documentElement.childNodes(i).Text
            End Select
        Next i
    End If
    Thank you.

    KT

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Use &lt; and &gt;
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Singapore
    Posts
    108
    Thanks JoshT.

    Besides that, sender can use CDATA to encapsulate the value include "<>". But the problem is that I have no control over sender's API.

    Pls help. Thks

    KT

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width