Hi to everyone.
As far as I know > is ok in content:
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.
See http://www.w3.org/TR/REC-xml/#syntax and http://www.w3.org/TR/REC-xml/#NT-content
Regards
Michael
Feed: egit-dev
Bereitgestellt am: Donnerstag, 8. November 2012 10:43
Autor: alex.blewitt@xxxxxxx (Alex Blewitt)
Betreff: Re: [egit-dev] Does anyone know how this doesn't cause an XML validation failure?
On 8 Nov 2012, at 00:56, Konstantin Komissarchik wrote:
From XML perspective, this is legal… The second line is simply text content of the <context> element. Except for the unescaped > which isn't, of course.
<context
id="org.eclipse.egit.ui.ReflogView"
name="%ReflogViewContext"
parentId="org.eclipse.ui.contexts.window">
parentId="org.eclipse.ui.contexts.window">
</context>
I'm surprised that this doesn't get picked up by PDE or flagged as an invalid XML file … |
|
Artikel anzeigen...