class Nokogiri::HTML::SAX::ParserContext

def self.file filename, encoding

def self.file filename, encoding
  ctx = LibXML.htmlCreateFileParserCtxt filename, encoding
  pc = allocate
  pc.cstruct = LibXML::XmlParserContext.new ctx
  pc
end