/* * call-seq: * namespace() * * returns the default namespace set on this node (as with an "xmlns=" * attribute), as a Namespace object. */ static VALUE namespace(VALUE self) { xmlNodePtr node ; Data_Get_Struct(self, xmlNode, node); if (node->ns) return Nokogiri_wrap_xml_namespace(node->doc, node->ns); return Qnil ; }