null reference expction in the code
- by LifeH2O
I am getting NullReferenceException error on "_attr.Append(xmlNode.Attributes["name"]);".
namespace SMAS
{
class Profiles
{
private XmlTextReader _profReader;
private XmlDocument _profDoc;
private const string Url = "http://localhost/teamprofiles.xml";
private const string XPath = "/teams/team-profile";
public XmlNodeList…