I have a simple XML file:
<?xml version="1.0" encoding="UTF-8"?>
<foo attr="blah ° blah"/>
When I load it into .NET XmlDocument and print Save, ie:
xmlDoc = New XmlDocument()
xmlDoc.Load("c:\temp\bar.xml")
xmlDoc.Save("c:\temp\bad.xml")
the new XML file contains the permitted amplifier 176 (degree sign). This then breaks the final black box that I am trying to load into XML.
I tried to play with encoding, which is ineffective. Is it possible for the parser to simply respond to what happened without resolving the entity? Inert, it does not allow & # 176;
source
share