class LibXML::XML::Schema::Element
Attributes
name[R]
namespace[R]
type[R]
value[R]
Public Instance Methods
annotation()
click to toggle source
static VALUE rxml_schema_element_annot(VALUE self)
{
xmlSchemaElementPtr xelem;
VALUE annotation = Qnil;
Data_Get_Struct(self, xmlSchemaElement, xelem);
if ((xelem->annot != NULL) && (xelem->annot->content != NULL))
{
xmlChar *content = xmlNodeGetContent(xelem->annot->content);
if (content)
{
annotation = rxml_new_cstr(content, NULL);
xmlFree(content);
}
}
return annotation;
}
array?()
click to toggle source
# File lib/libxml/schema/element.rb, line 10 def array? max_occurs > 1 end
elements()
click to toggle source
# File lib/libxml/schema/element.rb, line 14 def elements type.elements end
node()
click to toggle source
static VALUE rxml_schema_element_node(VALUE self)
{
xmlSchemaElementPtr xelem;
Data_Get_Struct(self, xmlSchemaElement, xelem);
return rxml_node_wrap(xelem->node);
}
required?()
click to toggle source
# File lib/libxml/schema/element.rb, line 6 def required? !min_occurs.zero? end