| 312 | } |
| 313 | |
| 314 | static xmlNodePtr |
| 315 | xml_get_child_node (xmlNodePtr node, const char *child_name) |
| 316 | { |
| 317 | node = node->xmlChildrenNode; |
| 318 | while (node != NULL) |
| 319 | { |
| 320 | if ((!xmlStrcmp(node->name, (const xmlChar *) child_name))) |
| 321 | { |
| 322 | return node; |
| 323 | } |
| 324 | node = node->next; |
| 325 | } |
| 326 | return NULL; |
| 327 | } |
| 328 | |
| 329 | static xmlXPathObjectPtr |
| 330 | xml_get_all_paths (xmlDocPtr doc, xmlNodePtr node, const char *path) |
no outgoing calls
no test coverage detected