public GeneralQuery(string queryParams, string queryArgs) { XmlDocument queryArgsDoc = new XmlDocument(); queryArgsDoc.LoadXml(queryArgs); XmlDocument queryParamsDoc = new XmlDocument(); queryParamsDoc.LoadXml(queryArgs); QueryArgs = new QArgs(queryArgsDoc.DocumentNode); QueryParams = new QGeneralParams(queryParamsDoc.DocumentNode); }
public GeneralQuery(string queryStr) { XmlDocument queryDoc = new XmlDocument(); queryDoc.LoadXml(queryStr); var queryNode = queryDoc.DocumentNode.SelectSingleNode("/query"); Debug.Assert(queryNode != null); string type = queryNode.GetAttributeValue("type", ""); Debug.Assert(type == "generalQuery"); var queryParamsNode = queryNode.SelectSingleNode("./params"); var queryArgsNode = queryNode.SelectSingleNode("./queryArgs"); QueryArgs = new QArgs(queryArgsNode); QueryParams = new QGeneralParams(queryParamsNode); }
public GeneralQuery(QGeneralParams queryParams, QArgs queryArgs) { QueryParams = queryParams; QueryArgs = queryArgs; }