What is the best way to find information within an xml file. I'm using it
as a Config file for a site. I'm playing with XMLTextReader. Is there a
better way?
Thanks
Glenn
Glenn,
> What is the best way to find information within an xml file. I'm using it
> as a Config file for a site. I'm playing with XMLTextReader. Is there a
> better way?
You could also load it into an XmlDocument or XPathDocument and use XPath to
query it. That would certainly be easier.

Signature
Tomas Restrepo
tomasr@mvps.org
> What is the best way to find information within an xml file. I'm using it
> as a Config file for a site. I'm playing with XMLTextReader. Is there a
> better way?
The best way is not to reinvent configuration facility, but makes use of .NET
configuration stuff. But if you really need your own config, there are many
options from XML serializable class to XPathDocument (or XmlDocument if you
need to update config) to XmlReader (which is the most efficient way to read
XML document).

Signature
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel