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

From: 张虎成 (hucheng.zhang at hotmail.com)
Date: Tue May 25 08:43:16 EDT 2010

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 ] missing, is that normal?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100525/dff8b622/attachment.html>

Posted on the users mailing list.