+ /* If we get to this point, something was retrieved.
+ * Feed it to the XML parser to see if it's an XRDS document.
+ */
+ XML_Parser xp = XML_ParserCreateNS(NULL, ':');
+ if (xp) {
+ XML_Parse(xp, ChrPtr(ReplyBuf), docbytes, 0);
+ XML_Parse(xp, "", 0, 1);
+ XML_ParserFree(xp);
+ }
+ else {
+ syslog(LOG_ALERT, "Cannot create XML parser");
+ }