function

xml_nbchild . xml . sncode

VERSIONlatest Return number of child for current node.

XML_NBCHILD(1e)

NAME

xml_nbchild - Return number of child for current node.

SYNOPSIS

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

DESCRIPTION

Return number of child for current node.

PARAMETERS

xml
Specify xml to parse.
error
Capture error.

RETURN

Integer
Number of child.

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

nb = node.xml_nbchild();

AUTHOR

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