
Hello Actipro,
I am working with the SyntaxEditor as XML Editor for a sound tool. The corresponding .xsd file contains annotations displayed as tooltips inside the SyntaxEditor.
<xs:attribute name="my_attribute" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en-us">
<!-- characters here -->
</xs:documentation>
</xs:annotation>-->
</xs:attribute>
There are four special chars. Using
- '♭' (flat) and '♯' (sharp) are ok but
- '𝄫' (double flat, 𝄫) and '𝄪' (double sharp, 𝄪) produce a System.Xml.XmlException:
"'☐', hexadecimal value 0xD834, is an invalid character.
Within the VS Xml Editor the tooltip will be displayed correctly and - of course - without exception.
Writing
SyntaxEditor.Document.LoadFile(xmlFile, Encoding.UTF8);
SyntaxEditor.Document.LoadFile(xmlFile, Encoding.Unicode);
SyntaxEditor.Document.LoadFile(fullXmlFileName, Encoding.GetEncoding("ISO-8859-1"));
do not work. Where is the mistake? Thank you :)
Regards
Sascha Nitschke