ReadXml under CompactFramework 2.0

Hi,

I'm trying to find the ReadXml class in the CompactFamework, or an equivalent, but I stil can't find.

In the CF 1.0, it was part of the namespace System.Data, but it seems to not be anymore.

Can you help me to find a way to read XML documents under CF 2.0

Regards,
Ch'Portos.



Answer this question

ReadXml under CompactFramework 2.0

  • Jimbeaux

    I think that all the XML related classes are on namespace System.Xml.

    As far as I know the only similar to what you want is the ReadXml() Method of the Dataset that allows you to load data to a dataset from an xml.

    MSDN link:
    http://msdn2.microsoft.com/en-us/library/system.data.dataset.readxml.aspx

  • GrayMatter Software

    OK, it was that :
    - I added in the project properties the reference to System.Xml.dll
    - I added at the beginning of the project the line Import System.Xml

    Thank you guy !

    Ch'Portos.


  • Hoopla

    NETCF V2 includes everything NETCF V1 has. So, yes, it's likely you're doing something wrong. Most likely you’re just missing “Imports System.Data” statement or don’t have reference System.Data.dll.



  • r prasanna vignesh

    Thank you, I knew that under CompactFramework 1.0, but I can't use it when I'm using the Compact Framework 2.0.

    Is it normal, or did I do something wrong


  • ReadXml under CompactFramework 2.0