Re: [xml] correct way to output HTML without the <?xml...



On Wed, May 24, 2006 at 11:52:41AM +0100, Nic James Ferrier wrote:

Nic wrote:

I want to output it as well-formed HTML, preferably with the HTML4
transitonal DTD but no xml declaration, eg:


Daniel replied:

  It's possible, use the xmlsave.h APIs with the XML_SAVE_NO_DECL
  option.

No way to do it from Python though? 


Is it the case that the xmlsave stuff has come fairly recently and the
Python code has not been rejigged to use it?

  yes

It looks like the xmlsave API is slightly more generic than the stuff
the Python layer uses.

  and yes, sorry

Daniel

-- 
Daniel Veillard      | Red Hat 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]