Method: Nokogiri::XML::Node#unlink

Defined in:
ext/nokogiri/xml_node.c

:call-seq:

unlink() → self

Unlink this node from its current context.



1000
1001
1002
1003
1004
1005
1006
1007
1008
# File 'ext/nokogiri/xml_node.c', line 1000

static VALUE
unlink_node(VALUE self)
{
  xmlNodePtr node;
  Noko_Node_Get_Struct(self, xmlNode, node);
  xmlUnlinkNode(node);
  noko_xml_document_pin_node(node);
  return self;
}