<App> <Post id="1" text="Hello"></Post> <Post id="2" text="Hello1"></Post> <Post id="3" text="Hello2"></Post> </App>
public string GetText(string id) { string selected = sid; XDocument doc = XDocument.Load(HttpContext.Current.Server.MapPath("application.xml")); }
public string GetText(string id) { string selected = sid; XDocument doc = XDocument.Load(HttpContext.Current.Server.MapPath("application.xml")); sid=doc.SelectSingleNode("/App/Post[id=" + id + "]").Value }
public string GetText(string id) { string selected = sid; XDocument doc = XDocument.Load(HttpContext.Current.Server.MapPath("application.xml")); string sid = doc.SelectSingleNode("//Post[@id='" + id + "']").Attributes["text"].Value; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)