I have written the following asp.net code ,How to access the value of minvalue from color node and bgcolor from chart node ?
XmlDocument doc = new XmlDocument();
string xmlFile = System.Web.HttpContext.Current.Server.MapPath("Data/Example.xml");
doc.Load(xmlFile);
XmlNodeList xmlnode = doc.GetElementsByTagName("value");
My XML looks like this:
<Chart editMode='1' bgColor='FFFFFF' bgAlpha='0' showBorder='0' upperLimit='1000' >
<colorRange>
<color minValue='0' maxValue='100' code='F6BD0F' />
</colorRange>
<value>665</value>
</Chart>
Try this..
EDIT: This code should now work, but it would probably be easier to use one of the XPath suggestions posted