[Axl] Using axl_node_get_content

Francis Brosnan Blazquez francis at aspl.es
Tue Jan 15 17:01:44 CET 2008


Hi Steven,

> I am having some trouble figuring out how to use axl_node_get_content
> <-- "I
> think this is the function i want to use"
> 
> What i am trying to do is get the contents of  <child1>Hello</child1>
> when i use this peice of code...
> 
> // get the first child node and its contents
>     node = axl_node_get_first_child (node);
>     axl_node_dump(node, &value, NULL);
>     printf("Useing the axl_node_get_first_child function. \n");
>     printf("%s \n\n", value);
> 
> This is the output i get.
> <child1>Hello</child1>
> 
> What i want to do is just get ...
> Hello
> 
> If someone could provide and example on how to use
> "axl_node_get_content"?
> i would really appreciate it.

I think i miss something because you only have to replace the call to
axl_node_dump with axl_node_get_content as follow to make it work. The
rest is ok:

    value = axl_node_get_content (node, NULL);

Cheers!    

-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.




More information about the Axl mailing list