Re: [xml] XHTML 1.0 to HTML 4.01

Florent Guiliani wrote:
I wonder if there a way, within libxml2, to convert an XML document (xmlDocPtr) 
that contains valid XHTML 1.0 into HTML 4.01 ? A way with only libxml2 function 
calls would be perfect.

If you parse it in, you can use the HTML parser, which should also handle
XHTML without problems. But as Daniel suggested, you might want to add a
doctype declaration.


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