Example #1
0
        /// <summary>
        /// Execute the query on the WebDAV server.
        /// </summary>
        /// <param name="queryElement">Query information.</param>
        /// <returns>Results from the query.</returns>
        private XmlDocument executeQuery(QueryElement queryElement)
        {
            // Document to hold the query information.
            XmlDocument queryDocument = new XmlDocument();

            try {
                queryDocument.LoadXml(queryElement.Xml);
            } catch (XmlException ex) {
                throw new ApplicationException("The Xml specified is not valid.", ex);
            }

            // Document to hold the resulting Xml.
            return runQuery(queryDocument.OuterXml);
        }
Example #2
0
 /// <summary>
 /// Single-threaded approach to execute queries.
 /// </summary>
 /// <param name="queries">Queries to execute.</param>
 public string ExecuteQuery(QueryElement query)
 {
     XmlDocument resultsDocument = executeQuery(query);
     string output = resultsDocument.OuterXml;
     return output;
 }
Example #3
0
 public string Parse(QueryElement queryElement, XmlDocument document, string dateTimeFormat, bool tryToParseDates)
 {
     return string.Empty;
 }