hiramlight
asked on
Inserting CDATA in xml node
I have an existing xml file and I want to be able to add data but with the <![CDATA[ somedata ]]> into the node wwhen I try i just get : <![CDATA[mystring]]> .
try many things but so far fail
that what I use
If n1.Name = "name" Then
Dim MyXMLNode As XmlNode = n1.SelectSingleNode("ldm1" )
'If we have the node let's change the text
If MyXMLNode IsNot Nothing Then
Dim strtxt As String = "<![CDATA[" & strtxtPlats & "]]>"
' CData = myXmlDocument.CreateCDataS ection (strtxtPlats)
MyXMLNode.InnerText =strtxt
End If
cheer's
try many things but so far fail
that what I use
If n1.Name = "name" Then
Dim MyXMLNode As XmlNode = n1.SelectSingleNode("ldm1"
'If we have the node let's change the text
If MyXMLNode IsNot Nothing Then
Dim strtxt As String = "<![CDATA[" & strtxtPlats & "]]>"
' CData = myXmlDocument.CreateCDataS
MyXMLNode.InnerText =strtxt
End If
cheer's
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.