Method: Nokogiri::XML::Node#unlink

Defined in:
ext/nokogiri/xml_node.c

Unlink this node from its current context.


577
578
579
580
581
582
583
584
# File 'ext/nokogiri/xml_node.c', line 577

static VALUE unlink_node(VALUE self)
{
  xmlNodePtr node;
  Data_Get_Struct(self, xmlNode, node);
  xmlUnlinkNode(node);
  nokogiri_root_node(node);
  return self;
}