/* * call-seq: * inner_xml * * Read the contents of the current node, including child nodes and markup. */ static VALUE inner_xml(VALUE self) { xmlTextReaderPtr reader; Data_Get_Struct(self, xmlTextReader, reader); const char * value = (const char *)xmlTextReaderReadInnerXml(reader); if(value == NULL) return Qnil; else return NOKOGIRI_STR_NEW2(value); }