Problem with SelectNodes

I

Ibai Peña

Hi,

I have read in the help files that the XmlElement, and the XmlNode classes
have the SelectNodes methods.

But when I try to use it from my app, gives me an error saying that
'System.Xml.XmlElement' does not contain a definition for 'SelectNodes'.

Am I forgetting something, or doing something wrong? Here is the code

XmlDocument MyDoc = new XmlDocument();
MyDoc.Load(FileName);
XmlNodeList nodeList;
XmlElement root = MyDoc.DocumentElement;
nodeList = root.SelectNodes(/bookstore/book/@bk:ISBN);

Any help will be apreciated
 
I

Ibai Peña

Sorry, it is true. I supposed that as I have filtered by .net compact
framework, all info that appear, would be allowed in CF.

So, the only XML searching way in CF, is sequential search. Which method is
best for searching, and updating a XML Node?

Thanks,
--
Ibai Peña

Chris Tacke said:
The CF doesn't support XPath.
 

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