void axl_node_set_content ( axlNode node,
const char *  content,
int  content_size 
)

Allows to set content to the given axlNode instance.

The xml node content is that part defined inside two xml starts, using the same label, that are balanced. Here is an example:

 <data>
   Content inside the xml node.
 </data>

Because the function will perform a local copy for the provided data, it will also check for especial entities to be placed properly.

The following characters represents the set of characters that should be referenced by using its associated entity reference. But, if provided as is, the function will translate them into the appropiate entity reference.

CharacterEntity name
'&apos;
<&lt;
>&gt;
&&amp;
"&quot;

In general it is a good idea to espace previous sequences by providing the right entity value, avoding the additional computation required to translate the value received.

Rembember that valid XML documents have these values escaped.

Parameters:
node The xml node, represented by an already initialized axlNode, where the node content will be set.
content The content to set to the axlNode. The function will perform a local copy. Provided value could be unreferenced once the function finish.
content_size The content size that is being provided. If -1 is used, the function will use strlen function to get current content size.