[Expat-discuss] Comments are a killer?

Guenter Obiltschnig lists at appinf.com
Fri Mar 10 20:10:23 CET 2006


Hi,

from the XML 1.0 recommendation:
2.5 Comments

[Definition: Comments may appear anywhere in a document outside other  
markup; in addition, they may appear within the document type  
declaration at places allowed by the grammar. They are not part of  
the document's character data; an XML processor may, but need not,  
make it possible for an application to retrieve the text of comments.  
For compatibility, the string "--" (double-hyphen) must not occur  
within comments.] Parameter entity references must not be recognized  
within comments.

There you have it.



Best regards,

Günter


On Mar 10, 2006, at 17:27 , Régis St-Gelais (Laubrass) wrote:

> ----- Original Message -----
> From: Mark Serlin
> To: expat-discuss at libexpat.org
> Sent: Friday, March 10, 2006 10:49 AM
> Subject: [Expat-discuss] Comments are a killer?
>>
>> Hi all
>>
>> My version of expat 1.95.8 falls foul of any comments like this
>>
>> <!-- ------------------ a comment ------------------ -->
>>
>> but not like this
>>
>> <!--    a comment   -->
>>
>> Is this expected?
>
> Mark,
>
> I don't know if this is normal beavior for an XML parser but I can  
> tell you
> that my version Expat 2.0.0 also gives me a not well formed error  
> message.
>
> Regis St-Gelais
> www.laubrass.com
>
>
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss



--
Günter Obiltschnig                   Applied Informatics
guenter.obiltschnig at appinf.com     http://www.appinf.com
P: +43 4253 32596  M: +43 676 5166737  F: +43 4253 32096
--------------------------------------------------------
The C++ Portable Components:      http://poco.appinf.com




More information about the Expat-discuss mailing list