[plt-scheme] There is one ] missed in cdata-string

From: 张虎成 (qq929962616 at gmail.com)
Date: Tue May 25 08:44:57 EDT 2010



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

> x


> cdata-string


> (document-element x)


> (define e (document-element x))

> (element-content e)


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

Posted on the users mailing list.