Click to See Complete Forum and Search --> : XML for Pocket PC on Windows CE Platform


llan
April 24th, 2006, 12:35 PM
Hello, I am trying to convert my C# application to work on a Pocket PC using Windows CE platforms. I have got the Windows WM Developer Resource Kit installed.
The problem is that it keeps on saying that the XML file is not found. does anyone know what is wrong with the below code.


public static string doRead()
{

reader = new XmlTextReader("users.xml");
while (reader.Read())
{
//This will move to the Next Record
contents = null;
reader.MoveToContent();
//This If statement will only allow the Text within a Tag to be accessed
if (reader.NodeType == System.Xml.XmlNodeType.Text)
{

contents = encryption.Decrypt(reader.Value);
return contents;

}


}
finish = "True";
ic = 0;
reader.Close();
return contents = null;
}