xml_new - Initialise xml with a new xml.
xml_new(xml:string, file:string [,error:variable]);
This initialize a new xml parser with xml string or from an xml file.
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" }
res=<{xml_new(); }>. return .*XML or file must be specified.* res=<{xml_new(file:"a",xml:"b"); }>. return .*XML or file must be specified, not both.* res=<{xml_new(error:t,xml:""); t.errcode; t.errmsg;}>. return res=21At line=1,errcode=21 Invalid XML.. res=<{xml=xml_new(error:t,file:"/html/cyberpresse.xml"); t.errcode; t.errmsg;}>. return res=0. res=<{xml=xml_new(error:t,xml:''); t.errcode; t.errmsg;}>. return res=0. a
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