Results 1 to 7 of 7

Thread: Compact Framework

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235

    Compact Framework

    Can anyone tell me how to write to XML in Compact Framework?

    I cant seem to find any way.

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Location
    Port Huron, Michigan
    Posts
    20
    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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    so how...should i go about doing it.....

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    Can I use Xml.Serialization in Compact Framework ??

  5. #5
    Junior Member
    Join Date
    Jul 2004
    Location
    Port Huron, Michigan
    Posts
    20
    are you using an XML schema?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Posts
    235
    what is a xml schema ?

  7. #7
    Junior Member
    Join Date
    Jul 2004
    Location
    Port Huron, Michigan
    Posts
    20
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width