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.
* */
/*
* 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 );
}
}
/*
* 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 note attribute * *
void remove() {
ws_xml_remove_node_attr( $self );
}
}
/*
* 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 );
}
}