function

xml_free . xml . sncode

VERSIONlatest Free an xml structure.

XML_FREE(1e)

NAME

xml_free - Free an xml structure.

SYNOPSIS

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

DESCRIPTION

This function free an xml structure.

PARAMETERS

xml
Specify xml to parse.
error
Capture error.

RETURN

NULL

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

test(q(res=<{xml=xml_new(error:t,file:"/html/cyberpresse.xml"); xml_free(xml:xml); t.errcode}>.), q(res=0.));
test(q(res=<{xml=xml_new(error:t,file:"/html/cyberpresse.xml"); xml_free(xml); t.errcode}>.), q(res=0.));
test(q(res=<{xml=xml_new(error:t,file:"/html/cyberpresse.xml"); xml_free(1); t.errcode}>.), q(.*is not valid in xml_free.*));

AUTHOR

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