20.5. Summary

The following summarizes the .NET Framework XML classes:

  • The .NET Framework has built-in support for XML processing, something Java was lacking until Java version 1.4.

  • The .NET classes support both the DOM and the SAX APIs.

  • Unlike the Java SAX parsers, which process every tag of an XML document, the .NET SAX parser uses the flexible pull model to extract data and parses only those tags in which you are interested. You can skip sections of the documents while parsing.

  • The Java SAX parser uses the event programming paradigm; therefore, the state of the parsing process is maintained by a set of classes. The .NET SAX parser allows for simple while loop constructs for conditional parsing of the XML document.

  • You can read and write XML to ...

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.