Chapter 20. Processing XML

Like the popular HTML, Extensible Markup Language (XML) consists of tagged, human-readable text. Unlike HTML, the tags in an XML document follow one simple rule: For every opening tag <tag> there is a closing tag </tag> . An XML document in which every opening tag has a closing tag is said to be well formed.

As long as the XML document is well formed, you can fabricate the tags in any way you want. An XML document is typically parsed by an XML parser, which creates an in-memory logical data structure for navigating the document. There are different types of XML parsers. The most common do not usually care what the tags are as long as they are well formed. Sometimes a parser can validate an XML document against a set ...

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.