ec_httpsrv_request_data_get_xml
Name
ec_httpsrv_request_data_get_xml — Gets an XML object representation of the request payload data
Synopsis
#include "modules/listeners/httpsrv.h"
| int **ec_httpsrv_request_data_get_xml** (
| sess, | |
| | xml)
; | |
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Gets an XML object representation of the request payload data.
- sess
-
the session to interrogate
- xml
-
returns the XML document
Passes the payload data to the libxml2 parser and returns the resultant xmlDocPtr via the xml parameter.
0 on success, or an errno value indicating any issues with consuming the payload data.
The xml object will be set to the successfully created xml representation of the string on success, otherwise it will be NULL.
It is possible for the return value to be 0 and the xml parameter to be set to NULL. The likely cause of this is that that payload was not valid XML text.
The caller owns the return xml document and is responsible for calling xmlFreeDoc() when it is no longer needed.