It has a strange format:
Any help would be great
Regards
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
PJ MartinsRank #2,548 · 548 reputationPosted May 28, 2010, 6:25 AM EDT
Here's a simple example of how to search an element by its alias and display its name using System.Xml.XmlDocument and XPath:
XmlDocument doc = new XmlDocument();
doc.LoadXml(@"
XmlNode node = doc.SelectSingleNode("/ItemList/Item[@Alias='AI']");
if (node != null)
Console.WriteLine(node.Attributes["Name"].Value);
You can find more information on XPath here: http://www.w3schools.com/xpath/xpath_syntax.asp
PJ MartinsRank #2,548 · 548 reputationPosted May 27, 2010, 5:06 PM EDT
This represents a list with two items in it each having its own name and alias. In what context do you need to use it?
CrishRank #1,486 · 1.1K reputationPosted May 27, 2010, 6:37 PM EDT
try below code
if (window.XMLHttpRequest)
{
xhttp=new XMLHttpRequest();
}
else // Internet Explorer 5/6
{
xhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xhttp.open("GET","books.xml",false);
xhttp.send("");
xmlDoc=xhttp.responseXML;
also try below link
http://www.java2s.com/Code/CSharp/XML/ReadXMLnodeusingtheXMLpath.htm
Don't forget to Mark Do you like this Answer
Sam HobbsRank #107 · 20.5K reputationPosted May 28, 2010, 3:50 AM EDT