I'm not an expert programmer, mostly self-trained. Currently my Project is to create a XML parser for an application im writing in C# for Windows phone. To learn that, I'm trying the demo posted here: http://www.developer.nokia.com/Community/Wiki/Parse_Local_XML_file_in_Windows_Phone
all is good until I get to the following part:
private void btnparse_Click(object sender, RoutedEventArgs e)
{
this._parser = XMLParser.Instance;
StreamResourceInfo strm = Application.GetResourceStream(new Uri("/LocalXmlParsing;component/States.xml",UriKind.Relative));
//needs to be done only once
StreamReader reader = new StreamReader(strm.Stream);
string data = reader.ReadToEnd();
_parser.DataToParse = data;
_parser.ParseStateData();
lstStates.ItemsSource = _parser.StateCollection;
}
I get the Error: "Error 2 The name '_parser' does not exist in the current context" I will take any advice you guys can give me.
_parser?