How to save .net XML document to path using & in
I am saving an XMLDocument object to disk using the Save (string) function . When I do this, I get the "Unable to find a pairing error" error.
I've tried passing characters like "&", "&", "% 26", "\ 26" and "\ 38". What am I missing? Please note that I am not talking about the contents of the file, but the name of the file.
Dim todocument As New Xml.XmlDocument
todocument.LoadXml(fromXml.OuterXml)
todocument.Save(toPath)
0
a source to share