class Nokogiri::XML::ElementDecl
Public Instance Methods
content → Nokogiri::XML::ElementContent
click to toggle source
- Returns
-
The root of this element declaration’s content tree.
static VALUE
content(VALUE self)
{
xmlElementPtr node;
Noko_Node_Get_Struct(self, xmlElement, node);
if (!node->content) { return Qnil; }
return noko_xml_element_content_wrap(
rb_funcall(self, id_document, 0),
node->content
);
}
element_type → Integer
click to toggle source
The element_type
static VALUE
element_type(VALUE self)
{
xmlElementPtr node;
Noko_Node_Get_Struct(self, xmlElement, node);
return INT2NUM(node->etype);
}
prefix → String
click to toggle source
- Returns
-
The namespace
prefixfor this element declaration.
static VALUE
prefix(VALUE self)
{
xmlElementPtr node;
Noko_Node_Get_Struct(self, xmlElement, node);
if (!node->prefix) { return Qnil; }
return NOKOGIRI_STR_NEW2(node->prefix);
}
Private Instance Methods
inspect_attributes()
click to toggle source
# File lib/nokogiri/xml/element_decl.rb, line 12 def inspect_attributes [:to_s] end