function

xml_parent . xml . sncode

VERSIONlatest Get parent node of the current node.

XML_PARENT(1e)

NAME

xml_parent - Get parent node of the current node.

SYNOPSIS

xml_parent(xml:string, [,error:variable]);

DESCRIPTION

This function return parent node of current node.

PARAMETERS

xml
Specify xml to parse.
error
Capture error.

RETURN

Node
Pointer to the parent node.

MODULES

To use this module, you must specify the following in /usr/local/website/site.conf:

Module xml {
        Library : "/usr/local/lib/libsnxml.so"
        Init : "snxml_init"
}

EXAMPLES

node = xml_parent(node);

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>