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

# rdfSetNsAttribute(3)

Sets the value of an attribute in the specified namespace.

## NAME

rdfSetNsAttribute - Sets the value of an attribute in the specified namespace.

## SYNOPSIS

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

**void rdfSetNsAttribute(RdfElement \*element, const char \*attname,** **const char \*value, RdfNamespace \*ns);**

## PARAMETERS

- **element**

  The element which contains or will contain the attribute.

- **attname**

  The name of the attribute.

- **value**

  The attribute's value.

- **ns**

  The namespace of the attribute.

## DESCRIPTION

Sets the value of an attribute in the specified namespace.

## RETURNS

Nothing.

## SEE ALSO

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