XmlDocument doc = new XmlDocument();
try
{
doc.Load(Server.MapPath("/XML/people.xml"));
string caseInsensitiveQuery = "root/people/person/*[translate(local-name(),"+
"'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')='name']";
XmlreturnedNodeFromNodesList returnedreturnedNodeFromNodess = doc.SelectreturnedreturnedNodeFromNodess(caseInsensitiveQuery);
foreach (XmlreturnedNodeFromNodes returnedNodeFromNodes in returnedreturnedNodeFromNodess)
{
Response.Write(returnedNodeFromNodes.InnerText + "<br />");
}
}
catch (XmlException ex)
{
Response.Write(ex.toString());
}
catch (FileNotFoundException ex)
{
Response.Write(ex.toString());
}
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......