find and return the (unique) child with a tagname in the given namespace */
| 345 | |
| 346 | /* find and return the (unique) child with a tagname in the given namespace */ |
| 347 | DAV_DECLARE(apr_xml_elem *) dav_find_child_ns(const apr_xml_elem *elem, |
| 348 | int ns, const char *tagname) |
| 349 | { |
| 350 | apr_xml_elem *child = elem->first_child; |
| 351 | |
| 352 | for (; child; child = child->next) |
| 353 | if (child->ns == ns && !strcmp(child->name, tagname)) |
| 354 | return child; |
| 355 | return NULL; |
| 356 | } |
| 357 | |
| 358 | /* find and return the (unique) child with a given DAV: tagname */ |
| 359 | DAV_DECLARE(apr_xml_elem *) dav_find_child(const apr_xml_elem *elem, |