Hello,

Try to pinpoint where the issue is. The NRE is a consequence, not the
real issue.

E.g. Add a breakpoint on

string clientcode=txtClientCode.Text;

then look if the file exists (easy, at least on the simulator) and is
non-empty. That will tell you if you were able to serialize correctly
your data.

If it file exists then look at the data to see if your XPath query
makes sense in case the data does not match what you expect (which
would return you a null value).

Sebastien

On Tue, Jun 19, 2012 at 1:46 PM, proindigo <[email protected]> wrote:
> Oops, My Bad. Sorry for pointing to a wrong line.
>
> It's actually this line, that's throwing the exception -->
> where I am trying to use the value of variable usrnm.
>
> UIAlertView uvm=new UIAlertView("Notification", ""+usrnm.ToString ()+"",
> null, "OK", null);
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/XML-Serialization-and-writing-to-a-file-in-MOnoDevelop-with-C-tp4655459p4655476.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to