static public Method

Hpricot.XML(input, opts = {})

Hpricot::XML parses input, disregarding all the HTML rules and returning a document tree.

Source Code

# File hpricot/parse.rb, line 20
def Hpricot.XML(input, opts = {})
  Doc.new(make(input, opts.merge(:xml => true)))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.