question about [ and ] inside CDATA tags

Mike Ostman <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
(Sent this message to the bugs list first - that was probably the  
wrong place.  Sorry for the resend)

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