• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/apache-793/httpd/modules/dav/main/

Lines Matching +defs:child +defs:name

95 #define DAV_INHERIT_VALUE(parent, child, field) \
96 ((child)->field ? (child)->field : (parent)->field)
137 dav_server_conf *child = overrides;
174 dav_dir_conf *child = overrides;
180 newconf->provider_name = DAV_INHERIT_VALUE(parent, child, provider_name);
181 newconf->provider = DAV_INHERIT_VALUE(parent, child, provider);
183 if (child->provider_name == NULL) {
188 else if (strcasecmp(child->provider_name,
196 newconf->locktimeout = DAV_INHERIT_VALUE(parent, child, locktimeout);
197 newconf->dir = DAV_INHERIT_VALUE(parent, child, dir);
198 newconf->allow_depthinfinity = DAV_INHERIT_VALUE(parent, child,
1280 apr_xml_elem *child;
1297 "<D:supported-method D:name=\"%s\"/>"
1305 for (child = elem->first_child; child != NULL; child = child->next) {
1306 if (child->ns == APR_XML_NS_DAV_ID
1307 && strcmp(child->name, "supported-method") == 0) {
1308 const char *name = NULL;
1310 /* go through attributes to find method name */
1311 for (attr = child->attr; attr != NULL; attr = attr->next) {
1313 && strcmp(attr->name, "name") == 0)
1314 name = attr->value;
1317 if (name == NULL) {
1320 "does not have a \"name\" attribute");
1324 if (apr_table_get(methods, name) != NULL) {
1326 "<D:supported-method D:name=\"%s\"/>"
1328 name);
1347 apr_xml_elem *child;
1384 for (child = elem->first_child; child != NULL; child = child->next) {
1385 if (child->ns == APR_XML_NS_DAV_ID
1386 && strcmp(child->name, "supported-live-property") == 0) {
1387 const char *name = NULL;
1390 /* go through attributes to find name and namespace */
1391 for (attr = child->attr; attr != NULL; attr = attr->next) {
1393 if (strcmp(attr->name, "name") == 0)
1394 name = attr->value;
1395 else if (strcmp(attr->name, "namespace") == 0)
1400 if (name == NULL) {
1403 "element does not have a \"name\" "
1413 dav_get_liveprop_supported(propdb, nmspace, name, body);
1435 apr_xml_elem *child;
1461 "<D:supported-report D:name=\"%s\" "
1463 rp->name, rp->nmspace);
1469 for (child = elem->first_child; child != NULL; child = child->next) {
1470 if (child->ns == APR_XML_NS_DAV_ID
1471 && strcmp(child->name, "supported-report") == 0) {
1472 const char *name = NULL;
1475 /* go through attributes to find name and namespace */
1476 for (attr = child->attr; attr != NULL; attr = attr->next) {
1478 if (strcmp(attr->name, "name") == 0)
1479 name = attr->value;
1480 else if (strcmp(attr->name, "namespace") == 0)
1485 if (name == NULL) {
1488 "does not have a \"name\" attribute");
1496 if (strcmp(name, rp->name) == 0
1503 "D:name=\"%s\" "
1506 rp->name, rp->nmspace);
1871 if (strcmp(elem->name, "supported-method-set") == 0) {
1875 else if (strcmp(elem->name, "supported-live-property-set") == 0) {
1879 else if (strcmp(elem->name, "supported-report-set") == 0) {
2076 "the required child elements (the specific command).");
2280 apr_xml_elem *child;
2349 for (child = doc->root->first_child; child; child = child->next) {
2355 if (child->ns != APR_XML_NS_DAV_ID
2356 || (!(is_remove = (strcmp(child->name, "remove") == 0))
2357 && strcmp(child->name, "set") != 0)) {
2361 /* make sure that a "prop" child exists for set/remove */
2362 if ((prop_group = dav_find_child(child, "prop")) == NULL) {
3315 const apr_xml_elem *child;
3326 if ((child = dav_find_child(doc->root, "version")) == NULL) {
3333 if ((child = dav_find_child(child, "href")) == NULL) {
3341 apr_xml_to_text(r->pool, child, APR_XML_X2T_INNER, NULL, NULL,
3522 const apr_xml_elem *child = aset->first_child;
3526 for (; child != NULL; child = child->next) {
3527 if (child->ns == APR_XML_NS_DAV_ID
3528 && strcmp(child->name, "href") == 0) {
3531 href = dav_xml_get_cdata(child, r->pool,
3756 apr_xml_elem *child;
3790 /* check for label-name or version element, but not both */
3791 if ((child = dav_find_child(doc->root, "label-name")) != NULL)
3793 else if ((child = dav_find_child(doc->root, "version")) != NULL) {
3795 if ((child = dav_find_child(child, "href")) == NULL) {
3805 "a \"label-name\" or \"version\" element.");
3817 apr_xml_to_text(r->pool, child, APR_XML_X2T_INNER, NULL, NULL,
3821 "A \"label-name\" or \"href\" element does not contain "
3964 apr_xml_elem *child;
4007 if ((child = dav_find_child(doc->root, "add")) != NULL) {
4010 else if ((child = dav_find_child(doc->root, "set")) != NULL) {
4013 else if ((child = dav_find_child(doc->root, "remove")) != NULL) {
4024 if ((child = dav_find_child(child, "label-name")) == NULL) {
4027 "a \"label-name\" element.");
4031 apr_xml_to_text(r->pool, child, APR_XML_X2T_INNER, NULL, NULL,
4035 "A \"label-name\" element does not contain "
4036 "a label name.");
4912 const char *ns_uri, const char *name,
4914 (resource, ns_uri, name, hooks), 0)