| 264 | } |
| 265 | |
| 266 | static xmlNodePtr |
| 267 | xml_get_node (xmlNodePtr node, const char *child_name) |
| 268 | { |
| 269 | node = node->xmlChildrenNode; |
| 270 | while (node != NULL) |
| 271 | { |
| 272 | if ((!xmlStrcmp(node->name, (const xmlChar *) child_name))) |
| 273 | { |
| 274 | return node; |
| 275 | } |
| 276 | node = node->next; |
| 277 | } |
| 278 | g_debug("Could not find node %s", child_name); |
| 279 | return NULL; |
| 280 | } |
| 281 | |
| 282 | static char * |
| 283 | xml_get_data (xmlDocPtr doc, xmlNodePtr node, const char *name) |