Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / July 2003

Tip: Looking for answers? Try searching our database.

XML File and Select

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Glenn Leifheit - 07 Jul 2003 20:44 GMT
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
Tomas Restrepo \(MVP\) - 08 Jul 2003 01:10 GMT
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

Oleg Tkachenko - 08 Jul 2003 09:39 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.