Groups | Blog | Home
all groups > dotnet xml > october 2005 >

dotnet xml : Best way to read an xml file


David Thielen
10/7/2005 3:01:02 PM
Hi;

If I need to read an XML file - basically the SAX approach where I just need
each node in order - one pass, read-only - what is the best way to do this.

It looks like it's XmlReader but I want to verify that.

???

--
David Thielen
10/7/2005 5:35:02 PM
Thank you - and yes, firehose it is <g>.

--
thanks - dave


[quoted text, click to view]
Derek Harmon
10/7/2005 7:46:33 PM
[quoted text, click to view]

Yes, if your only requirement is a firehose forward reader, then XmlReader
is the way to go (get a concrete implementation of the abstract XmlReader
with either XmlReader.Create( ) and a suitable XmlReaderSettings profile
in .NET 2.0, or XmlTextReader is suitable for most cases in .NET 1.x.)


Derek Harmon

AddThis Social Bookmark Button