# File lib/libxml/parser.rb, line 12 def self.document(doc) context = XML::Parser::Context.document(doc) self.new(context) end