Reference

rdfNewNamespace(3)

Creates a new namespace with the specified URI and prefix.

NAME

rdfNewNamespace - Creates a new namespace with the specified URI and prefix.

SYNOPSIS

#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.

DESCRIPTION

Creates a new namespace with the specified URI and prefix.

RETURNS

The new namespace.

EXAMPLE

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");

SEE ALSO

rdfGetNamespace(3), rdfGetRdfNamespace(3), rdfGetNamespaceURI(3), rdfGetNamespacePrefix(3)