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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
PJ MartinsPosted May 28, 2010, 10:25 AM
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
Sam HobbsPosted May 28, 2010, 7:50 AM
CrishPosted May 27, 2010, 10:37 PM
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
PJ MartinsPosted May 27, 2010, 9:06 PM
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?