Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[egit-dev] WG: Does anyone know how this doesn't cause an XML validation failure?

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.

 

Alex



 

- Konstantin

 

 

From: egit-dev-bounces@xxxxxxxxxxx [mailto:egit-dev-bounces@xxxxxxxxxxx] On Behalf Of Alex Blewitt
Sent: Wednesday, November 07, 2012 4:03 PM
To: EGit developer discussion
Subject: [egit-dev] Does anyone know how this doesn't cause an XML validation failure?

 

      <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 …

 

Alex


Artikel anzeigen...


Back to the top