Main Page   File List   Globals  

attribute.h File Reference

Attribute functions. More...

#include <libgnurdf/types.h>

Go to the source code of this file.

Functions

void rdfSetAttribute (RdfElement *element, const char *attname, const char *value)
 Sets an element's attribute. More...

char * rdfGetAttribute (RdfElement *element, const char *attname)
 Returns an attribute's value. More...

void rdfSetNsAttribute (RdfElement *element, const char *attname, const char *value, RdfNamespace *ns)
 Sets the value of an attribute in the specified namespace. More...

char * rdfGetNsAttribute (RdfElement *element, const char *attname, RdfNamespace *ns)
 Returns the value of an attribute in the specified namespace. More...


Detailed Description

Attribute functions.

Id:
attribute.h,v 1.4 2001/08/23 08:51:22 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

char* rdfGetAttribute RdfElement   element,
const char *    attname
 

Returns an attribute's value.

Note: The returned attribute must be freed.

Parameters:
element   The element containing the attribute.
attname   The name of the attribute.
Returns:
The value of the attribute.

char* rdfGetNsAttribute RdfElement   element,
const char *    attname,
RdfNamespace   ns
 

Returns the value of an attribute in the specified namespace.

Note: The returned value must be freed.

Parameters:
element   The element containing the attribute.
attname   The name of the attribute.
ns   The namespace of the attribute.
Returns:
The value of the attribute.

void rdfSetAttribute RdfElement   element,
const char *    attname,
const char *    value
 

Sets an element's attribute.

Parameters:
element   The element containing the attribute.
attname   The name of the attribute.
value   The attribute's value.

void rdfSetNsAttribute RdfElement   element,
const char *    attname,
const char *    value,
RdfNamespace   ns
 

Sets the value of an attribute in the specified namespace.

Parameters:
element   The element containing the attribute.
attname   The name of the attribute.
value   The attribute's value.
ns   The namespace of the attribute.


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