NonStop SOAP 4.1 User's Manual

Description:
This function sets the root element of the document. If a root node already exists, it is freed before
setting to root element.
Parameters:
document
document structure 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 the status code AXIS2_SUCCESS on success , else returns AXIS2_FAILURE
on error.
axiom_document_build_all
Synopsis:
AXIS2_EXTERN axiom_node_t* axiom_document_build_all
( struct axiom_document * document,
const axutil_env_t * env )
Description:
This method builds the rest of the xml input stream from current position till the root element is
completed .
Parameters:
document
pointer to axiom_document_t structure to be built.
env
is a pointer to the environment structure. The env parameter must not be NULL.
Return Values:
None
Element
axiom_element_create
Synopsis:
AXIS2_EXTERN axiom_element_t* axiom_element_create
( const axutil_env_t * env,
axiom_node_t * parent,
const axis2_char_t * localname,
axiom_namespace_t * ns,
axiom_node_t ** node )
Description:
This function creates an AXIOM element with given localname.
Parameters:
env
is a pointer to the environment struct. The env parameter must not be NULL.
parent
parent of the element node to be created. can be NULL.
localname
localname of the elment. cannot be NULL.
ns
namespace of the element. can be NULL. If the value of the namespace has not already been
declared then the namespace structure ns will be declared and will be freed when the tree is
AXIOM APIs 323