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

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue May 25 09:48:08 EDT 2010

I'm think this is a bug, so I fixed it and pushed it out. It will be
included in the impending release.

Thanks for the report!

Jay

2010/5/25 张虎成 <qq929962616 at gmail.com>:
> 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?
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.