|
Thread: Xml
-
Apr 8th, 2002, 04:19 AM
#1
Thread Starter
Lively Member
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
-
Apr 8th, 2002, 11:12 AM
#2
Black Cat
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.
-
Apr 8th, 2002, 11:57 PM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|