- dav_roomname = NewStrBuf();
- dav_uid = NewStrBuf();
- StrBufExtract_token(dav_roomname, WCC->Hdr->HR.ReqLine, 0, '/');
- StrBufExtract_token(dav_uid, WCC->Hdr->HR.ReqLine, 1, '/');
-#ifdef DEV_RESTDAV
- /*
- * If the room name is blank, the client is requesting a
- * folder list.
- */
- SubRooms = NewHash(1, Flathash);
- State = GotoRestRoom(SubRooms);
- if (((State & REST_IN_ROOM) == 0) ||
- (((State & (REST_GOT_LOCAL_PART)) == 0) &&
- (WCC->Hdr->HR.dav_depth == 0)))
- {
- now = time(NULL);
- http_datestring(datestring, sizeof datestring, now);
-
- /*
- * Be rude. Completely ignore the XML request and simply send them
- * everything we know about. Let the client sort it out.
- */
- hprintf("HTTP/1.0 207 Multi-Status\r\n");
- groupdav_common_headers();
- hprintf("Date: %s\r\n", datestring);
- hprintf("Content-type: text/xml\r\n");
- if (DisableGzip || (!WCC->Hdr->HR.gzip_ok))
- hprintf("Content-encoding: identity\r\n");
-
- begin_burst();
+ int parse_success = 0;
+ XML_Parser xp = XML_ParserCreateNS(NULL, '|');
+ if (xp) {
+ // XML_SetUserData(xp, XXX);
+ XML_SetElementHandler(xp, propfind_xml_start, propfind_xml_end);
+ // XML_SetCharacterDataHandler(xp, xrds_xml_chardata);