Hpricot::XML parses input, disregarding all the HTML rules and returning a document tree.
# File hpricot/parse.rb, line 20 def Hpricot.XML(input, opts = {}) Doc.new(make(input, opts.merge(:xml => true))) end
<code/>
<pre/>
<code/>and<pre/>for code samples.