O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Searching an XML Document Node Tree

If there is one area where the XmlDocument API is thin, it is in providing the ability to search an XmlDocument. There are several methods that the XmlDocument does not support since the .NET Compact Framework lacks support for XPath or DTDs. On the desktop .NET Framework, the methods SelectNode and SelectSingleNode accept XPath query strings as parameters.

Also, the GetElementById method, which searches the document for the element with the specified ID, is not supported, because there is no DTD support. This deserves an explanation. An element's ID is a string value of a specific attribute. An attribute is specified as the special ID attribute in the DTD. Since the .NET Compact Framework does not support ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required