I'm building a small software that is supposed to generate a graphml file in order to read using yEd afterwards. It is a software that builds graphs using nodes and edges.
The typical 'node' is writtent as follows
<node id="n0">
<data key="d6">
<y:ShapeNode>
<y:Geometry height="80.0" width="90.0" x="0.0" y="0.0"/>
<y:Fill color2="#993300" hasColor="false" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="14" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="21.1513671875" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#000000" verticalTextPosition="bottom" visible="true" width="43.6962890625" x="23.15185546875" xml:space="preserve" y="4.0">Boite1</y:NodeLabel>
<y:Shape type="diamond"/>
</y:ShapeNode>
</data>
</node>
I'm trying to edit via C# a graphml file. The way I wanted to do this, was by print lines in a rich text box and then saving it to a file with the right extension.
Although it seems I can't print quotqtion marks inside a print, as follows. The 'WriteLog' method is my method to print to the rich text box.
WriteLog("<?xml version="1.0" encoding="UTF - 8" standalone="no"?>");
Is there maybe another way i do not think about ? I'm really not familiar with xml.