static VALUE content(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); if (!node->content) { return Qnil; } return noko_xml_element_content_wrap( rb_funcall(self, id_document, 0), node->content ); }
The allowed content for this ElementDecl
static VALUE element_type(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); return INT2NUM((long)node->etype); }
The element_type
# File lib/nokogiri/xml/element_decl.rb, line 10 def inspect "#<#{self.class.name}:#{format("0x%x", object_id)} #{to_s.inspect}>" end
static VALUE prefix(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); if (!node->prefix) { return Qnil; } return NOKOGIRI_STR_NEW2(node->prefix); }
The namespace prefix for this ElementDecl
© 2008–2018 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo,
Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
Licensed under the MIT License.
https://nokogiri.org/rdoc/Nokogiri/XML/ElementDecl.html