Main Page   Modules   Data Structures   File List   Data Fields   Examples  

Element
[Node]


Defines

#define DOM_ELEMENT   DOM_NODE

Functions

DOM_ELEMENT * domElementNew (const char *name)
void domElementDestroy (DOM_ELEMENT *element)
void domElementSetAttribute (DOM_ELEMENT *element, const char *name, const char *value)
void domElementUnsetAttribute (DOM_ELEMENT *element, const char *name)
const char * domElementGetAttribute (DOM_ELEMENT *element, const char *name)

Detailed Description

Element node manipulation.

Define Documentation

#define DOM_ELEMENT   DOM_NODE
 

Defines a DOM_ELEMENT as a DOM_NODE. This gives us "inheritance" in C.


Function Documentation

void domElementDestroy DOM_ELEMENT *    element
 

Recursively destroys a DOM element.

Parameters:
element [in] The element to be destroyed.

const char* domElementGetAttribute DOM_ELEMENT *    element,
const char *    name
 

Get the value associated with an attribute by its name.

Parameters:
element [in] The element node to set the attribute on.
name [in] The name of the attribute.
Returns:
On success, a valid pointer is return that is the value associated with the attribute 'name'. Otherwise, NULL is returned.

DOM_ELEMENT* domElementNew const char *    name
 

Constructs a DOM element with the given name.

Parameters:
name [in] The name of the element to construct.
Returns:
The initialize DOM element node.

void domElementSetAttribute DOM_ELEMENT *    element,
const char *    name,
const char *    value
 

Sets an attribute on an element by its name.

Parameters:
element [in] The element node to set the attribute on.
name [in] The name of the attribute.
value [in] The value of the attribute.

void domElementUnsetAttribute DOM_ELEMENT *    element,
const char *    name
 

Unsets an attribute on an element by its name.

Parameters:
element [in] The element node to unset the attribute on.
name [in] The name of the attribute.


Generated on Sun Dec 1 04:59:01 2002 for libsgml by doxygen1.3-rc1