I have a simple XML file like so:
<?xml version="1.0" encoding="UTF-8"?>
<foo attr="blah ° blah"/>
When I load it into the .NET XmlDocument and issue a Save, i.e.:
xmlDoc = New XmlDocument()
xmlDoc.Load("c:\temp\bar.xml")
xmlDoc.Save("c:\temp\bad.xml")
the new XML file contains the resolved amp 176 (a degree sign). This then breaks the final black box I'm trying to load the XML into.
I've tried playing with the encoding, to little effect. Is it possible for the parser to just echo what came in, without resolving the entities? Inerestingly, it doesn't resolve &#176;