class Openwsman::XmlAttr
An XmlAttr is a key/value pair representing an attribute of a node.
An attribute has
-
a name (the key)
-
a namespace (optional)
-
a value
There is no standalone constructor available for XmlAttr, use XmlNode.add_attr() to create a new attribute.
Public Instance Methods
Source
char *name() {
return ws_xml_get_attr_name( $self );
}
/*
* get namespace for attr
*
* call-seq:
* attr.ns -> String
*
*/
char *ns() {
return ws_xml_get_attr_ns( $self );
}
/*
* get value for attr
*
* call-seq:
* attr.value -> String
*
*/
char *value() {
return ws_xml_get_attr_value( $self );
}
/*
* remove note attribute
*
* call-seq:
* attr.remove -> nil
*
*/
void remove() {
ws_xml_remove_node_attr( $self );
}
}
get name for attr
Source
char *ns() {
return ws_xml_get_attr_ns( $self );
}
/*
* get value for attr
*
* call-seq:
* attr.value -> String
*
*/
char *value() {
return ws_xml_get_attr_value( $self );
}
/*
* remove note attribute
*
* call-seq:
* attr.remove -> nil
*
*/
void remove() {
ws_xml_remove_node_attr( $self );
}
}
get namespace for attr
Source
char *value() {
return ws_xml_get_attr_value( $self );
}
/*
* remove note attribute
*
* call-seq:
* attr.remove -> nil
*
*/
void remove() {
ws_xml_remove_node_attr( $self );
}
}
get value for attr