class Nokogiri::XML::XPathContext

def self.new(node) # :nodoc:

:nodoc:
def self.new(node) # :nodoc:
  LibXML.xmlXPathInit()
  ptr = LibXML.xmlXPathNewContext(node.cstruct[:doc])
  ctx = allocate
  ctx.cstruct = LibXML::XmlXpathContext.new(ptr)
  ctx.cstruct[:node] = node.cstruct
  ctx
end