Friday, September 7, 2018

How do you read a large XML. Is there an easier way than XmlReader?

I could not think of a better place for asking this (please suggest one if there is), because this is an open-ended question so StackOverflow will now allow this.

Anyways, I have been using XmlDocument mostly, because it is easier, even when I only needed to read them sequentially. Now, I need to read a large XML file, 50GB or so. The structure is not that complicated. But with XmlReader and all the state maintaining, etc, it will be sort of daunting and error-prone.

Is there any better and easier way? I only need to read them sequentially, not randomly searching for values. If there is not, I will use XmlReader, but I just wanted to check if there is.

How do you read a large XML. Is there an easier way than XmlReader? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team