XML_PREFIX
NAME
xml_prefix - Get the name of the prefix in a namespace or null if not defined.
SYNOPSIS
xml_prefix(xml:string, [error:variable]);
DESCRIPTION
This function get the name of the prefix value in name space element.
PARAMETERS
- xml
- Specify xml to parse.
- error
- Capture error.
RETURN
- Name of current element.
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
In an XML like <content:encoded><![CDATA[
res=<{xml=xml_new(error:t,file:"/html/cyberpresse.xml"); xml_prefix(xml); t.errcode}>. return res=mediafilm0.
SEE ALSO
AUTHOR
Written by Pierre Laplante, <laplante@sednove.com>
MODIFICATIONS
1.0 2021-11-09 21:24:14 laplante@sednove.com available at version 5.167
Edit