class Nokogiri::XML::ElementDecl
Public Instance Methods
content
click to toggle 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
click to toggle source
The #element_type
static VALUE element_type(VALUE self)
{
xmlElementPtr node;
Data_Get_Struct(self, xmlElement, node);
return INT2NUM((long)node->etype);
}
inspect()
click to toggle 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
click to toggle 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);
}