I have a problem with createTextNode method e special characters like '>', '<':
Dim xmlDoc As DOMDocument
Dim codeXML as String
Dim n As IXMLDOMNode
codeXML = '<data>value</data>'
Set n = xmlDoc.createTextNode(codeXML)
I need a result like this:
<main><data>value</data></main>
but I get
<main><data>value</data></main>
How can I solve that problem?
Thank you very much.