Re: XML::Parser bug in comment xml code?
"Christopher R. Maden" <[email protected]> Fri, 11 Nov 2011 10:30:11 -0500
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
On 11/11/2011 10:26 AM, Todd Rinaldo wrote: > My question to the list is quite simply: Is this well formed XML? > > <!--<cmdline><![CDATA[--]]></cmdline>--> No, it is not. The only thing not allowed in comments is a double-hyphen — and that’s exactly what you have. Note that none of the markup, including the CDATA marked section, is parsed within a comment, so the double hyphen isn’t protected in any way from making the comment invalid. ~Chris -- Chris Maden, text nerd <URL: http://crism.maden.org/ > “Be wary of great leaders. Hope that there are many, many small leaders.” — Pete Seeger _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs