NonStop SOAP 4.1 User's Manual
Return Values:
This function returns AXIS2_SUCCESS if the attribute was found and removed, else returns
AXIS2_FAILURE.
axiom_element_set_text
Synopsis:
AXIS2_EXTERN axis2_status_t axiom_element_set_text
( axiom_element_t * om_element,
const axutil_env_t * env,
const axis2_char_t * text,
axiom_node_t * element_node )
Description:
This function sets the text of the given element.
CAUTION: This method will wipe out all the text elements (and hence any mixed content) before
setting the text.
Parameters:
om_element
pointer to om_element.
env
is a pointer to the environment struct. The env parameter must not be NULL.
text
text to set.
element_node
node of element.
Return Values:
This function returns AXIS2_SUCCESS if attribute was found and removed, else returns
AXIS2_FAILURE.
axiom_element_get_text
Synopsis:
AXIS2_EXTERN axis2_char_t* axiom_element_get_text
( axiom_element_t * om_element,
const axutil_env_t * env,
axiom_node_t * element_node )
Description:
This function selects all the text children and concatenates them to a single string. The string returned
by this method call will be released by AXIOM when this method is called again. So it is
recomended to have a copy of the return value if this method is going to be called more than once
and the return values of the earlier calls are important.
Parameters:
om_element
pointer to om_element.
env
is a pointer to the environment struct. The env parameter must not be NULL.
element
node , the container node of this AXIOM element
Return Values:
This function returns the concatenated text of all text children's text values return null if no text
children is available or on error.
AXIOM APIs 329










