DOMDocument - createTextNode, encoding issue

前端 未结 1 1916
日久生厌
日久生厌 2021-01-27 12:31

I have a problem with createTextNode method e special characters like \'>\', \'<\':

Dim xmlDoc As DOMDocument
Dim codeXML as String
Dim n As IXMLDOMNode

code         


        
相关标签:
1条回答
  • 2021-01-27 13:29

    One way would be to create a second Document to serve as the XML parser for these XML literals. You can use LoadXML to pass the string in and get validated XML objects. You can then Import the node to the original/main DOM Document you are building.

    0 讨论(0)
提交回复
热议问题