Community
Participate
Working Groups
I have a multiline string property in an annotation. I noticed that when I save it it doesn't look like it gets completely XML encoded.. <content xsi:type="org.eclipse.tigerstripe.annotation.ocl:OclConstraint" description="lets see" constraint="context here
inv: here>there"/> Note the 'here>there',. This doesn't look right. Am I missing something?
Hi Steve, '>' symbol is valid and have no special meaning when used in attribute value, so according to XML spec no encoding required. Did you expected any problems with that? Kind Regards, Andrey
From http://www.w3.org/TR/2006/REC-xml-20060816/#dt-chardata Quote: The ampersand character (&) and the left angle bracket (<) MUST NOT appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. If they are needed elsewhere, they MUST be escaped using either numeric character references or the strings "&" and "<" respectively. The right angle bracket (>) MAY be represented using the string ">", and MUST, for compatibility, be escaped using either ">" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. *** End Of Quote They mean compatibility with SGML, so I think EMF authors prefered to avoid optional substitutions in favour of performance and space. Thank you, Andrey
Marking as invalid. Please reopen if you disagree.