NonStop SOAP 4.1 User's Manual
Parameters:
env
is a pointer to the environment structure. The env parameter must not be NULL.
root
pointer to document's root node. Optional, can be NULL.
builder
pointer to axiom_stax_builder.
Return Values:
This function returns a pointer to the newly created document.
axiom_document_free
Synopsis:
AXIS2_EXTERN void axiom_document_free
( struct axiom_document * document,
const axutil_env_t * env )
Description:
This function frees the document structure.
Parameters:
document
pointer to axiom_document_t structure to be freed
env
is a pointer to the environment structure. The env parameter must not be NULL.
Return Values:
This function returns the status of the op. It returns AXIS2_SUCCESS on success, else returns
AXIS2_FAILURE.
axiom_document_get_root_element
Synopsis:
AXIS2_EXTERN axiom_node_t* axiom_document_get_root_element
( struct axiom_document * document,
const axutil_env_t * env )
Description:
This function gets the root element of the document.
Parameters:
document
document to return the root of.
env
is a pointer to the environment structure. The env parameter must not be NULL.
Return Values:
This function returns a pointer to the root node. If no root present, this method tries to build the
root. It returns NULL on error.
axiom_document_set_root_element
Synopsis:
AXIS2_EXTERN axis2_status_t axiom_document_set_root_element
( struct axiom_document * document,
const axutil_env_t * env,
axiom_node_t * om_node )
322 NonStop SOAP 4 APIs










