Sign in to follow this  
sriram

how to read an xml file from "My Documents"

Recommended Posts

sriram    0

I'm a newbie to programing in windows mobile 5 using visual c#. What I'm trying to do is build an app that reads a xml file from "My Documents" and changes the data around to display it. How do i get my program to read the xml file? ;)

Share this post


Link to post
Share on other sites
ddmf    0
I'm a newbie to programing in windows mobile 5 using visual c#. What I'm trying to do is build an app that reads a xml file from "My Documents" and changes the data around to display it. How do i get my program to read the xml file? ;)

Have a look at: http://support.microsoft.com/kb/307548

Also, rather than hard code the path, use Environment.GetFolderPath(Environment.SpecialFolder.Personal) which will return the path of the My Documents folder!

Share this post


Link to post
Share on other sites
kalkie2007    0

If you have a schema of the XML file you could use the xsd.exe tool to generate a class which has all the properties of the xml. To read the xml file in the class use the XmlSerializer. That way you won't have to parse the xml yourself.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.