/*
* call-seq:
* content
*
* Returns the content for this Node
*/
static VALUE get_content(VALUE self)
{
xmlNodePtr node;
Data_Get_Struct(self, xmlNode, node);
xmlChar * content = xmlNodeGetContent(node);
if(content) {
VALUE rval = NOKOGIRI_STR_NEW2(content, node->doc->encoding);
xmlFree(content);
return rval;
}
return Qnil;
}