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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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