Re: [xml] xmlsave serialization patch for CDATA



On Fri, May 20, 2005 at 10:52:34AM -0700, Mark Vakoc wrote:
Since it's possible using the tree API to create a CDATA section without
content the following patch fixes a serialzation but when cur->content == NULL

It appears according to the spec[1] that CDATA sections can be empty so this
outputs <![CDATA[]]>.  It could be argued that it should output nothing for the
CDATA node but I believe[2] this is the correct thing to do.

  Oops, right, looks fine. Applied and commited.

   thanks a lot !

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]