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
name → String
click to toggle source
/*
* get name for attr * *
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 ); } }
ns → String
click to toggle source
/*
* get namespace for attr * *
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 ); } }
remove → nil
click to toggle source
/*
* remove note attribute * *
void remove() { ws_xml_remove_node_attr( $self ); } }
value → String
click to toggle source
/*
* get value for attr * *
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 ); } }