To make sure you do not write invalid characters to an XML document, you can use the following code:
Import System.Security.SecurityElement
Private Function prepareXMLString(ByVal str AS String)
str = Escape(str)
Return str
End Sub
To convert XML characters to string, just use the .ToString method.
Import System.Security.SecurityElement
Private Function prepareXMLString(ByVal str AS String)
str = Escape(str)
Return str
End Sub
To convert XML characters to string, just use the .ToString method.
No comments:
Post a Comment