XML-Reader on handheld

  • Thread starter Thread starter Georg Kreyerhoff
  • Start date Start date
G

Georg Kreyerhoff

Hi all,

I'd like to parse an XML-file in a C#-application for a handheld
running Windows CE. I tried the
XMLDocument and XMLTextReader-classes from the System.XML-namespace,
but receive
a "NotSupportedException" when calling XMLDocument.LoadXml() or
XMLTextReader.Read().
Are these functions not available in the dotnet-compactframework or
what is going wrong?
Is there any other way to read XML-files?

Regards,
Georg
 
This is definitely supported on the CF. Are you sure your not using the
desktop ver or something? Show us some code.
 
This is definitely supported on the CF. Are you sure your not using the
desktop ver or something? Show us some code.

yes, I'm sure that I'm using the compact framework (verified the path
of the
dll's). Version of System.Xml.dll is 2.0.0.0. The code is fairly
trivial:

using System.Xml;

....
string xml_response;

// read xml data from web-request (omitted)

XmlDocument doc = new XMLDocument();
doc.LoadXml( xml_response ); // throws "NotSupportedException"


the same code works on the desktop version.

Georg
 
Back
Top