XML-Reader on handheld

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
 
S

Simon Hart [MVP]

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

Georg Kreyerhoff

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top