I used the XMLReader format:
XmlReader xmlReader = XmlReader.Create("batch.xml");
while (xmlReader.Read())
{
//Keep reading
if (xmlReader.Name.Equals("Keyword") && (xmlReader.NodeType == XmlNodeType.Element))
{
// get attribute from the Xml element here
string keywords = xmlReader.GetAttribute("name");
}
}
How do I cast "keywords" as a String[]?