Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Error: The entity name must follow the '&'

0 votes

I am getting error while opening the file..

I have uploaded the file on the google drfive ND THE LINK IS BELOW.

https://drive.google.com/open?id=0BxHJwh5wwfQieE5tZzBCTEpWLXc

Please reply ASAP of what could be the possible reason the error might be coming?

I am handling all XML characters and working in the c# code to generate the diagram.

string sNodeLabel = flowchartObject.nodes[iObjFC].name
                            .Replace("'", "'").Replace(">", ">")
                            .Replace("<", "&lt;").Replace("\"", "&quot;")
                            .Replace("&", " &amp; ");
                        string sNodeIDText = flowchartObject.nodes[iObjFC].id.ToString()
                            .Replace("'", "&apos;").Replace(">", "&gt;")
                            .Replace("<", "&lt;").Replace("\"", "&quot;")
                            .Replace("&", " &amp; ");

 

asked Nov 5, 2016 in Help by anonymous
reopened Nov 7, 2016 by thomas.behr

1 Answer

0 votes
Well, the XML you generate is invalid. XML text may not contain standalone '&' characters. (Since '&' signals the start of a character entity, a '&' literal has to be represented by the corresponding character entity '&amp;' as well.)
answered Nov 7, 2016 by thomas.behr [yWorks] (126,590 points)
Legal Disclosure | Privacy Policy