SAX vs XmlTextReader - SAX in C#

后端 未结 4 577
醉梦人生
醉梦人生 2020-12-15 09:19

I am attempting to read a large XML document and I wanted to do it in chunks vs XmlDocument\'s way of reading the entire file into memory. I know I can use

4条回答
  •  醉梦人生
    2020-12-15 09:45

    If you're talking about SAX for .NET, the project doesn't appear to be maintained. The last release was more than 2 years ago. Maybe they got it perfect on the last release, but I wouldn't bet on it. The author, Karl Waclawek, seems to have disappeared off the net.

    As for SAX under Java? You bet, it's great. Unfortunately, SAX was never developed as a standard, so all of the non-Java ports have been adapting a Java API for their own needs. While DOM is a pretty lousy API, it has the advantage of having been designed for multiple languages and environments, so it's easy to implement in Java, C#, JavaScript, C, et al.

提交回复
热议问题