title: How to make libxml2 parse non-strict HTML?
body: <p>I am using LibXML in my Vala application to parse HTML code. However the HTML I use is invalid if you pass it through validator (although browser displays it normally). In this HTML some tags are not closed, e.g. they use <code>&lt;img&gt;</code> instead of <code>&lt;img /&gt;</code> and <code>&lt;meta&gt;</code> instead of <code>&lt;meta/&gt;</code>. I cannot do anything about it, e.g. ask them to write valid HTML. But I need to parse it and libxml2 fails to do this (in short, <code>doc-&gt;get_root_element()</code> always return null).</p>
  
  <p>Can I do something to make libxml2 parse invalid HTML?</p>