xml_free - Free an xml structure.
xml_free(xml:string, [,error:variable]);
This function free an xml structure.
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" }
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.*));
Written by Pierre Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com