Hi all -
<div><br></div><div>read-xml apparently does not normalize/strip the <![CDATA[ ... ]]> wrapper when creating the cdata struct. Is there a reason why they are not stripped? </div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><div>#lang scheme</div></div><div><div>(require xml) </div></div><div><div><br></div></div><div><div>(define xml "<test><![CDATA[this is cdata]]></test>")</div></div><div><div><br></div></div>
<div><div>(define xexpr (xml->xexpr (document-element (read-xml (open-input-string xml)))))</div></div><div><div><br></div></div><div><div>(cdata-string (last xexpr)) </div></div><div>;; => "<![CDATA[this is cdata]]>"</div>
<div>;; better as => "this is cdata" </div></blockquote><div><br></div><div>Thanks,</div><div>yc</div><div><br></div>