| Class | WsMan::XmlAttr |
| In: |
rwsman_xmlattr.c
|
| Parent: | Object |
Return namespace of xml attribute
/*
* call-seq:
* XmlAttr.ns -> string
*
* Return namespace of xml attribute
*/
static VALUE
xmlattr_ns( VALUE self )
{
WsXmlAttrH attr = rwsman_xmlattr_unpack( self );
return rb_str_new2( ws_xml_get_attr_ns( attr ) );
}
Return namespace prefix of xml attribute
/*
* call-seq:
* XmlAttr.nsprefix -> string
*
* Return namespace prefix of xml attribute
*/
static VALUE
xmlattr_ns_prefix( VALUE self )
{
WsXmlAttrH attr = rwsman_xmlattr_unpack( self );
return rb_str_new2( ws_xml_get_attr_ns_prefix( attr ) );
}
Remove attribute from XML
/*
* call-seq:
* XmlAttr.remove -> nil
*
* Remove attribute from XML
*/
static VALUE
xmlattr_remove( VALUE self )
{
WsXmlAttrH attr = rwsman_xmlattr_unpack( self );
ws_xml_remove_node_attr( attr );
return Qnil;
}