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