problem with CDATA
843834Feb 4 2003 — edited Feb 4 2003I'm trying to create a CDATA node containing text that includes a square bracket. Example:
CDATASection cdata = (CDATASection)doc.createCDATASection("blah]");
The bracket is not included in the XML. The result looks like
<![CDATA[blah]]>
(missing one bracket at the end). Furthermore, if I add extra content like this
CDATASection cdata = (CDATASection)doc.createCDATASection("blah]morestuff");
I get the same result:
<![CDATA[blah]]>
It seems that the bracket and everything after it gets ignored.
Any suggestions?
Thanks,
vlb1