Main Page   File List   Globals  

namespace.h File Reference

Namespace functions. More...

#include <libgnurdf/types.h>

Go to the source code of this file.

Functions

RdfNamespacerdfNewNamespace (RdfSchema *schema, const char *uri, const char *prefix)
 Creates a new namespace with the specified URI and prefix. More...

RdfNamespacerdfGetNamespace (RdfSchema *schema, const char *uri)
 Returns the namespace with the specified URI. More...

RdfNamespacerdfGetRdfNamespace (RdfSchema *schema)
 Returns the RDF namespace. More...

const char * rdfGetNamespaceURI (RdfNamespace *ns)
 Returns the URI of the specified namespace. More...

const char * rdfGetNamespacePrefix (RdfNamespace *ns)
 Returns the prefix of the specified namespace. More...


Detailed Description

Namespace functions.

Id:
namespace.h,v 1.3 2001/09/20 20:00:48 chipx86 Exp
Copyright:
(C) 1999-2001 The GNUpdate Project.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Function Documentation

RdfNamespace* rdfGetNamespace RdfSchema   schema,
const char *    uri
 

Returns the namespace with the specified URI.

Parameters:
schema   The document schema.
uri   The URI of the namespace.
Returns:
The namespace, or NULL if not found.

const char* rdfGetNamespacePrefix RdfNamespace   ns
 

Returns the prefix of the specified namespace.

Parameters:
ns   The namespace.
Returns:
The namespace's prefix.

const char* rdfGetNamespaceURI RdfNamespace   ns
 

Returns the URI of the specified namespace.

Parameters:
ns   The namespace.
Returns:
The namespace's URI.

RdfNamespace* rdfGetRdfNamespace RdfSchema   schema
 

Returns the RDF namespace.

Parameters:
schema   The document schema.
Returns:
The namespace.

RdfNamespace* rdfNewNamespace RdfSchema   schema,
const char *    uri,
const char *    prefix
 

Creates a new namespace with the specified URI and prefix.

For example, to create a namespace such as the one used in the following tag:

 <SomeTag xmlns:myns="http://www.foo.com/myns">

You would do:

 RdfNamespace *ns;

 ns = rdfNewNamespace(schema, "http://www.foo.com/myns", "myns");
Parameters:
schema   The document schema.
uri   The URI of the namespace.
prefix   The namespace prefix.
Returns:
The new namespace.


Generated on Thu Sep 20 16:12:08 2001 for libgnurdf by doxygen1.2.9-20010819 written by Dimitri van Heesch, © 1997-2001