Quantcast
Channel: Reading Xml with XmlReader in C# - Stack Overflow
Browsing latest articles
Browse All 8 View Live

Answer by Mehmet for Reading Xml with XmlReader in C#

I am not experiented .But i think XmlReader is unnecessary.It is very hard to use.XElement is very easy to use.If you need performance ( faster ) you must change file format and use StreamReader and...

View Article



Answer by Muhammad Awais for Reading Xml with XmlReader in C#

The following example navigates through the stream to determine the current node type, and then uses XmlWriter to output the XmlReader content. StringBuilder output = new StringBuilder(); String...

View Article

Answer by Elvarism for Reading Xml with XmlReader in C#

XmlDataDocument xmldoc = new XmlDataDocument(); XmlNodeList xmlnode ; int i = 0; string str = null; FileStream fs = new FileStream("product.xml", FileMode.Open, FileAccess.Read); xmldoc.Load(fs);...

View Article

Answer by mdisibio for Reading Xml with XmlReader in C#

Three years later, perhaps with the renewed emphasis on WebApi and xml data, I came across this question. Since codewise I am inclined to follow Skeet out of an airplane without a parachute, and seeing...

View Article

Answer by Paul Alexander for Reading Xml with XmlReader in C#

We do this kind of XML parsing all the time. The key is defining where the parsing method will leave the reader on exit. If you always leave the reader on the next element following the element that...

View Article


Answer by Jon Skeet for Reading Xml with XmlReader in C#

My experience of XmlReader is that it's very easy to accidentally read too much. I know you've said you want to read it as quickly as possible, but have you tried using a DOM model instead? I've found...

View Article

Answer by Marc Gravell for Reading Xml with XmlReader in C#

For sub-objects, ReadSubtree() gives you an xml-reader limited to the sub-objects, but I really think that you are doing this the hard way. Unless you have very specific requirements for handling...

View Article

Reading Xml with XmlReader in C#

I'm trying to read the following Xml document as fast as I can and let additional classes manage the reading of each sub...

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images