It sounds like you need to get a book, or find some basic tutorials on C# and Xml. But because I'm kind here's some pointers that I hope will help.
http://msdn2.microsoft.com/en-us/lib...e_members.aspx
Every element in the XML tree inherits from XmlNode. There are various methods that can help you do what you want.
ChildNodes property. Loop through each XmlNode in the ChildNodes property. e.g.
foreach(XmlNode node in parentNode.ChildNodes)
{
// Do something
}
SelectNodes method. Much like ChildNodes this returns an array of XmlNode's, but based on an xpath expression.
foreach(XmlNode node in parentNode.SelectNodes("SupportItems/ScreenSupportItem"))
{
// Loop through every ScreenSupportItem.
}
For getting the attributes of a node you can use the Attributes collection
foreach(XmlNode att in parentNode.Attributes)
{
// att.Value and att.Name give you the attribute details.
}
Or you can use the GetNamedItem method, which returns null if the attribute doesn't exist.
string attValue = parentNode.Attributes.GetNamedItem("LinkURL");
if( attValue == null )
{
}
else
{
}
/- Sam Judson : Wrox Technical Editor -/