Re: [xml] libxml2 2.7.1 breaks XML serialisation of HTML trees



On 08/09/2008, Stefan Behnel <stefan_ml behnel de> wrote:
Hi,

 there was a change in 2.7.1 (xmlsave.c, ~760) that prevents HTML documents
 from being serialised in XML style...

 ...

 If the current behaviour is wanted, what's the future way of achieving
 this *without* temporarily modifying the document? (i.e. without breaking
 thread concurrency)

I have been eyeing the other 28 bits of xmlSaveOption recently, mostly
to add a XML_SAVE_XHTML to go counter to the current XML_SAVE_NO_XHTML
that would unconditionally turn *on* the Appendix C rules without
needing one of the XHTML 1.0 doctypes. Some other tweaks to like
XML_SAVE_XHTML_NO_META_CHARSET would perhaps also be good. Would an
XML_SAVE_TEXT_HTML option to do the old sgmlish serialisation answer
your use case?

Martin



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