2.2. XML Structure Before and After Parsing
The process of parsing takes a flat character stream including markup and creates a structured dataset, whose structure is determined by and reflected in the markup. This section describes more of what goes into and what comes out of a schema processor.
2.2.1. XML Documents
XML documents consist of elements. We shall assume that element is a class and that all elements are instances of that class. Element puts restrictions on its instances:
Each instance must be a string of characters.
It must begin with a start-tag and end with an end-tag, or it must be an empty-element tag.
There are various other restrictions as well.
All XML tags contain a type name that is used during DTD-based validation to determine ...
Get XML Schema Complete Reference, The 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.