Class Nokogiri::XML::ElementDecl inherits from Nokogiri::XML::Node
Public Instance Methods
- content() Show Source
-
The allowed content for this ElementDecl
-
static VALUE content(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); if(!node->content) return Qnil; return Nokogiri_wrap_element_content( rb_funcall(self, id_document, 0), node->content ); }
- element_type() Show Source
-
The element_type
-
static VALUE element_type(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); return INT2NUM((long)node->etype); }
- inspect() Show Source
-
# File lib/nokogiri/xml/element_decl.rb, line 8 def inspect "#<#{self.class.name}:#{sprintf("0x%x", object_id)} #{to_s.inspect}>" end
- prefix() Show Source
-
The namespace prefix for this ElementDecl
-
static VALUE prefix(VALUE self) { xmlElementPtr node; Data_Get_Struct(self, xmlElement, node); if(!node->prefix) return Qnil; return NOKOGIRI_STR_NEW2(node->prefix); }