class LibXML::XML::Schema::Attribute

Constants

OPTIONAL
REQUIRED

Attributes

name[R]
namespace[R]
occurs[R]
type[R]
value[R]

Public Instance Methods

default() click to toggle source
   # File lib/libxml/schema/attribute.rb
 9 def default
10   node['default']
11 end
node() click to toggle source
static VALUE rxml_schema_attribute_node(VALUE self)
{
  xmlSchemaAttributeUsePtr attr;

  Data_Get_Struct(self, xmlSchemaAttributeUse, attr);

  return rxml_node_wrap(attr->node);
}
required?() click to toggle source
   # File lib/libxml/schema/attribute.rb
13 def required?
14   occurs == REQUIRED
15 end