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.


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; ");


in Help by
reopened by

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.)
by [yWorks] (151k points)
Legal Disclosure | Privacy Policy