XML_FREE
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.*));
SEE ALSO
AUTHOR
Written by Pierre Laplante, <laplante@sednove.com>
MODIFICATIONS
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit