protected async Task<bool> DoesSupportsReportSet (Uri url, int depth, string reportSetNamespace, string reportSet)
{
var document = await _webDavClient.ExecuteWebDavRequestAndReadResponse (
url,
"PROPFIND",
depth,
null,
null,
"application/xml",
@"<?xml version='1.0'?>
<D:propfind xmlns:D=""DAV:"">
<D:prop>
<D:supported-report-set/>
</D:prop>
</D:propfind>
"
);
XmlNode reportSetNode = document.XmlDocument.SelectSingleNode (
string.Format (
"/D:multistatus/D:response/D:propstat/D:prop/D:supported-report-set/D:supported-report/D:report/{0}:{1}",
reportSetNamespace,
reportSet),
document.XmlNamespaceManager);
return reportSetNode != null;
}