Can anyone tell me how to write to XML in Compact Framework?
I cant seem to find any way.
Printable View
Can anyone tell me how to write to XML in Compact Framework?
I cant seem to find any way.
If you are using an xml schema then I would use the System.Data namespace and declare a new System.Data.DataSet object and read the xml schema you have, and use the data objects to work with it. Otherwise I would use System.Xml namespace and declare a new System.Xml.XmlDocument and use the Xml namespace to create the elements in the xml document. Both work in the compact framework.
Chris
so how...should i go about doing it.....
Can I use Xml.Serialization in Compact Framework ??
are you using an XML schema?
what is a xml schema ?
XML Schema is like a blueprint of the xml file. It defines the tables, columns, datatypes stored in the xml file and the structure of it. If you make a schema file, its really easy to manipulate the data using the dataset and System.Data namespace. I think XSD is the file extension for a schema file, XML Schema Definition would be my guess. You can create them in visual studio depending on what version you have.
Chris