Hi all -

read-xml apparently does not normalize/strip the <![CDATA[ ... ]]> wrapper
when creating the cdata struct.  Is there a reason why they are not
stripped?

#lang scheme
(require xml)

(define xml "<test><![CDATA[this is cdata]]></test>")

(define xexpr (xml->xexpr (document-element (read-xml (open-input-string
xml)))))

(cdata-string (last xexpr))
;; => "<![CDATA[this is cdata]]>"
;; better as => "this is cdata"


Thanks,
yc
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to