[Expat-bugs] question about [ and ] inside CDATA tags

Mike Ostman mostman at gmail.com
Tue Jan 24 20:04:20 CET 2006


I am trying to specify a CDATA element where the data has hard  
brackets.  Specifically - here is my example:

<name><![CDATA[$group[name]]]></name>

First - this is legal - correct?  I opened the file in some XML  
editors and it seemed to parse just fine.

When I parsed this with expat - all I get back in my CDATA handler is  
"]" (The closing hard bracket)

Has anyone else noticed this?

Thank you in advance-

-Mike



More information about the Expat-bugs mailing list