NonStop SOAP 4.1 User's Manual

freed. If the value of the namespace has already been declared using another namespace
structure then the namespace structure ns will be freed.
node
This is an out parameter. cannot be NULL. Returns the node corresponding to the comment
created. Node type will be set to AXIOM_ELEMENT
Return Values:
This function returns a pointer to the newly created element structure
axiom_element_create_with_qname
Synopsis:
AXIS2_EXTERN axiom_element_t* axiom_element_create_with_qname
( const axutil_env_t * env,
axiom_node_t * parent,
const axutil_qname_t * qname,
axiom_node_t ** node )
Description:
This function creates an AXIOM element with given qname.
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. It can be NULL.
qname
qname of the elment.cannot be NULL.
node
This is an out parameter. cannot be NULL. Returns the node corresponding to the comment
created. Node type will be set to AXIOM_ELEMENT.
Return Values:
This function returns a pointer to the newly created element structure.
axiom_element_add_attribute
Synopsis:
AXIS2_EXTERN axis2_status_t axiom_element_add_attribute
( axiom_element_t * om_element,
const axutil_env_t * env,
axiom_attribute_t * attribute,
axiom_node_t * node )
Description:
This function adds an attribute to current element. The current element takes responsibility of the
assigned attribute.
Parameters:
om_element
element to which the attribute is to be added. It cannot be NULL.
env
is a pointer to the environment struct. The env parameter must not be NULL.
attribute
attribute to be added.
node
axiom_node_t node that om_element is contained in
324 NonStop SOAP 4 APIs