On Fri, Jan 29, 2010 at 05:44:46PM +0100, Joachim Zobel wrote:
> Hi.
> 
> I am using libXML2 (Perl module) to parse HTML fragments, which it
> kindly does. Unfortunally it adds enclosing <html> and <body> tags. This
> is annoying for me since the fragment later is included in the middle of
> another document. How can I turn this off?

  See the other mails about this today, on a simple program you can
set htmlOmittedDefaultValue to 0, starting from next version the correct
way will be to add HTML_PARSE_NOIMPLIED to the html parser options.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
dan...@veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to