Rest.XmlNode.add_attr

### Method

# Rest XmlNodeadd_attr

#### Declaration [src]

    void
    rest_xml_node_add_attr (
      RestXmlNode* node,
      const char* attribute,
      const char* value
    )

#### Description [src]

Adds attribute to the given node.

#### Parameters

`attribute` | `const char*`
| Name of the attribute.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`value` | `const char*`
| Value to set attribute to.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.