[plt-scheme] There is one ] missed in cdata-string
Hello,
Have a look on following example:
G:\Documents and Settings\carlmax>mzscheme
Welcome to MzScheme v4.2.5 [3m], Copyright (c) 2004-2010 PLT Scheme Inc.
> (require xml)
> (define x (read-xml (open-input-string "<title><![CDATA[hello
world[mp3]]]></title>")))
> x
#<document>
> cdata-string
#<procedure:cdata-string>
> (document-element x)
#<element>
> (define e (document-element x))
> (element-content e)
(#<cdata>)
> (cdata-string (car (element-content e)))
"<![CDATA[hello world[mp3]]>"
There is one ] disappeared, is that normal?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100525/364c20ec/attachment.html>