Problem with SelectNodes

  • Thread starter Thread starter Ibai Peña
  • Start date Start date
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
 
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.
 
Back
Top