Does any one know how to put special characters in xml files?


In the part of generator of JetBrains MPS, when I want to generate code of Ionic, I cant write the attribute of (click) or [(ngModel)] because of the parentheses. What can I do?

Thanks for helping


You need to extends the core.xml language and provide your own concept extending XmlBaseAttribute, perhaps quite similar to XmlAttribute.




In XML files, special characters, also known as reserved or escape characters, need to be encoded using character entities to ensure the XML remains well-formed and doesn't interfere with the XML structure. Here are some commonly used special characters tha and their corresponding character entities in XML:


Please sign in to leave a comment.