Method: LibXML::XML::Attr#ns
- Defined in:
- ext/libxml/ruby_xml_attr.c
#ns ⇒ Object
Obtain this attribute’s associated XML::NS, if any.
214 215 216 217 218 219 220 221 222 |
# File 'ext/libxml/ruby_xml_attr.c', line 214
static VALUE rxml_attr_ns_get(VALUE self)
{
xmlAttrPtr xattr;
TypedData_Get_Struct(self, xmlAttr, &rxml_attr_type, xattr);
if (xattr->ns == NULL)
return Qnil;
else
return rxml_namespace_wrap(xattr->ns);
}
|