hi....
i have a small problem using the DOM parser for XML in c#
XmlDocument doc = new XmlDocument();
XmlNodeList _list = null;
doc.Load(location.Text);
_list = doc.GetElementsByTagName("DataSource");
foreach (XmlNode node in _list)
{
//some processing
}
over here i am able to get specific nodes using the getElementByTagName method.....
after this is done.....
how do i browse the child nodes of the nodes i've already selected......
<DataSource>
<DataSources>
<Name>Source1</Name>
</DataSources>
<DataSources>
<Name>Source2</Name>
<Property>Hidden<Property>
</DataSource>
</DataSource>
my code selects all the DataSource nodes in the xml.....
now for each of the DataSource nodes in the list that my code fetches....
i want to get browse the child nodes.... get the value of Name...
and if there is a Property field available, then i want to get the value of Property.....
Please help.....