This should resolve MatterHackers/MatterControl#5214.
The issue with ampersand is that it must be escaped when used in XML, which was not the case here.
This solution replaces the manual generation of XML by the use of XmlWriter.
It is a bit more verbose, but should prove more robust and prevent various formatting issues.
This should resolve MatterHackers/MatterControl#5214.
The issue with ampersand is that it must be escaped when used in XML, which was not the case here. This solution replaces the manual generation of XML by the use of XmlWriter. It is a bit more verbose, but should prove more robust and prevent various formatting issues.