| 703 | /************************************************************************/ |
| 704 | #if defined(USE_LIBXML2) |
| 705 | static int msWCSParseRequest20_XMLDescribeCoverage( |
| 706 | xmlNodePtr root, wcs20ParamsObjPtr params) |
| 707 | { |
| 708 | xmlNodePtr child; |
| 709 | int numIds = 0; |
| 710 | char *id; |
| 711 | |
| 712 | XML_FOREACH_CHILD(root, child) |
| 713 | { |
| 714 | XML_LOOP_IGNORE_COMMENT_OR_TEXT(child) |
| 715 | XML_ASSERT_NODE_NAME(child, "CoverageID"); |
| 716 | |
| 717 | /* Node content is the coverage ID */ |
| 718 | id = (char *)xmlNodeGetContent(child); |
| 719 | if (id == NULL || strlen(id) == 0) |
| 720 | { |
| 721 | msSetError(MS_WCSERR, "CoverageID could not be parsed.", |
| 722 | "msWCSParseRequest20_XMLDescribeCoverage()"); |
| 723 | return MS_FAILURE; |
| 724 | } |
| 725 | /* insert coverage ID into the list */ |
| 726 | ++numIds; |
| 727 | params->ids = CSLAddString(params->ids, (char *)id); |
| 728 | xmlFree(id); |
| 729 | } |
| 730 | return MS_SUCCESS; |
| 731 | } |
| 732 | #endif |
| 733 | |
| 734 | /************************************************************************/ |
no test coverage detected