class LibXML::XML::Schema::Element
Attributes
Public Instance Methods
Source
static VALUE rxml_schema_element_annot(VALUE self)
{
xmlSchemaElementPtr xelem;
VALUE annotation = Qnil;
TypedData_Get_Struct(self, xmlSchemaElement, &rxml_schema_element_type, 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;
}
Source
static VALUE rxml_schema_element_node(VALUE self)
{
xmlSchemaElementPtr xelem;
TypedData_Get_Struct(self, xmlSchemaElement, &rxml_schema_element_type, xelem);
return rxml_node_wrap(xelem->node);
}