Re: [xml] HTML fragments

On Fri, Jan 29, 2010 at 05:44:46PM +0100, Joachim Zobel wrote:

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 Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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