Re: Comments are a killer?

"Mark Serlin" <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Gosh who'd have thought? Thanks for taking the trouble to point that somewhat newbie error out to me! 
Mark

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Guenter
Obiltschnig
Sent: Friday, March 10, 2006 7:10 PM
To: [email protected]
Subject: Re: [Expat-discuss] Comments are a killer?


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: [email protected]
> 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
> [email protected]
> http://mail.libexpat.org/mailman/listinfo/expat-discuss



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


_______________________________________________
Expat-discuss mailing list
[email protected]
http://mail.libexpat.org/mailman/listinfo/expat-discuss

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.