Hi list. I will explain my problem.
I have developed an aplication with axis.I receive a xml text with this
axiom node:
http://sports.espn.go.com/espn/rss/nba/news"; text="ESPN.com -
NBA" htmlUrl="http://espn.go.com/nba/"; ng:subscriberCount="3231"
ng:unread="True" ng:username="" ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/13043";
ng:updated="True" ng:passwordenc="" ng:folderId="0"/>http://backends.barrapunto.com/barrapunto.rss"; text="Barrapunto"
htmlUrl="http://barrapunto.com/"; ng:subscriberCount="334"
ng:unread="True" ng:username="" ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/35905";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://bulma.net/xml.php"; text=" BULMA "
htmlUrl="http://bulma.net/"; ng:subscriberCount="64" ng:unread="True"
ng:username="" ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/41547";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://www.hispalinux.es/node/feed"; text="Hispalinux"
htmlUrl="http://www.hispalinux.es"; ng:subscriberCount="25"
ng:unread="True" ng:username="" ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/431693";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://libertonia.escomposlinux.org/backend.rdf";
text="Libertonia" htmlUrl="http://libertonia.escomposlinux.org/";
ng:subscriberCount="29" ng:unread="True" ng:username=""
ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/562052";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://libertonia.escomposlinux.org/diary.rdf"; text="Diarios de
Libertonia" htmlUrl="http://libertonia.escomposlinux.org/section/Diary";
ng:subscriberCount="10" ng:unread="True" ng:username=""
ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/858413";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://feeds.feedburner.com/PlanetUbuntuEs"; text="Feed de
PlanetUbuntu.Es" htmlUrl="http://www.planetubuntu.es";
ng:subscriberCount="16" ng:unread="False" ng:username=""
ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/1777825";
ng:updated="True" ng:passwordenc="" ng:folderId="20464569"/>http://magarto.com/blog/feed/"; text="Magarto"
htmlUrl="http://magarto.com/blog"; ng:subscriberCount="30"
ng:unread="True" ng:username="" ng:useDefaultCredentials="False"
ng:syncXmlUrl="http://services.newsgator.com/ngws/svc/Feed.aspx/1920685";
ng:updated="True" ng:passwordenc=""
ng:folderId="20464569"/>
.
I need to extract all elements of this node (outlines), and the
attributes of this.
Iam trying with the following code:
(child_body is the previus node )
child_body=axiom_node_get_next_sibling(child_head,env);
element_node_return=axiom_node_get_data_element(child_body_outline,env);
_first_element_body=axiom_element_get_first_element(element_node_return,env,child_body,&first_element_node);
children_iter=axiom_element_get_children(element_node_return,env,child_body);
if(NULL != children_iter )
{
while(axiom_children_iterator_has_next(children_iter, env))
{
child=NULL;
axiom_element_t *child_ele = NULL;
child = axiom_children_iterator_next(children_iter, env);
child_ele = (axiom_element_t *)axiom_node_get_data_element(child, env);
if(axiom_node_get_node_type(child_body_outline, env)== AXIOM_ELEMENT)
{
printf ("\nChilds body:%s
\n",axiom_element_to_string(child_ele,env,child_body_outline));
while(
axiom_util_get_next_sibling_element(_first_element_body,env,child_body,&next_node));
{
sibling_ele =(axiom_element_t
*)axiom_util_get_next_sibling_element(_first_element_body,env,child_body,&next_node);
printf("sibling: %s
\n",axiom_element_to_string(sibling_ele,env,child_body));
}
}
}
}
Somebody can help me?? I think my problem is I dont understand the
differences between axiom nodes and axiom elements.
Regards