Reputation: 267
//This is my xml file
<sql id="data8">select .......... and DATEDIFF(CURDATE(),modified_date) > 7 group by ......</sql>
//And i am accessing this in webmethod in aspx.cs page.
var doc = new XmlDocument();
doc.Load(Server.MapPath("XMLFile.xml"));
string cmdstr = doc.DocumentElement.SelectSingleNode("//queries/sql[@id='data8']").InnerXml;
But i am getting error "Unknown column 'gt' in 'where clause'". PLease help
Upvotes: 1
Views: 153