rdfNewNamespace(3)

rdfNewNamespace3

Creates a new namespace with the specified uri and prefix.

Usage

#include <gnurdf.h>

RdfNamespace *rdfNewNamespace(RdfSchema *schema, const char *uri, const char *prefix);

Parameters

schema

The document schema.

uri

The URI of the namespace.

prefix

The namespace prefix.

Overview

Creates a new namespace with the specified URI and prefix.

Returns

The new namespace.

Examples

To create a namespace such as the one used in the following tag:

<SomeTag xmlns:myn="http://www.foo.com/myns", "myns");

You would do:

RdfNamespace *ns;

ns = rdfNewNamespace(schema, "http://www.foo.com/myns", "myns");

From libgnurdf-dev 0.3.0-3 in Debian 3.0 (Woody). Parsed by carta from the page's man source.