EDataServer.XmlDocument.add_attribute_int

### Method

# EDataServer XmlDocumentadd_attribute_int

since: 3.26

#### Declaration [src]

    void
    e_xml_document_add_attribute_int (
      EXmlDocument* xml,
      const gchar* ns_href,
      const gchar* name,
      gint64 value
    )

#### Description [src]

Adds a new attribute with an integer value to the current element. Use `NULL` `ns_href`, to use the default namespace, otherwise either previously added namespace with the same href from `e_xml_document_add_namespaces()` is picked, or a new namespace with generated prefix is added.

Available since: 3.26

#### Parameters

`ns_href`

  Type: `const gchar*`

  Optional namespace href for the new attribute, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`name`

  Type: `const gchar*`

  Name of the attribute.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`value`

  Type: `gint64`

  Integer value of the attribute.