---
name: "rdfSetAttribute"
section: "3"
platform: "linux"
package: "libgnurdf-dev"
version: "0.3.0-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/rdfSetAttribute"
---

# rdfSetAttribute(3)

Sets an element's attribute.

## NAME

rdfSetAttribute - Sets an element's attribute.

## SYNOPSIS

**#include \<gnurdf.h\>**

**void rdfSetAttribute(RdfElement \*element, const char \*attname,** **const char \*value);**

## PARAMETERS

- **element**

  The element which contains or will contain the attribute.

- **attname**

  The name of the attribute.

- **value**

  The attribute's value.

## DESCRIPTION

Sets an element's attribute.

## RETURNS

Nothing.

## SEE ALSO

[rdfGetAttribute(3)](/rdfGetAttribute/3.md), [rdfGetNsAttribute(3)](/rdfGetNsAttribute/3.md), [rdfSetNsAttribute(3)](/rdfSetNsAttribute/3.md)
