XML Schema
If you're like most other beginning XML developers, you might have asked yourself “How can anyone communicate using XML? Since every set of XML data uses different tags, how can anyone know what's supposed to be in the data?” You won't have been alone in asking yourself these questions.
The answer is that without more information, XML is just data, and there's no way to determine whether it's the correct data. Sure, you can tell whether the XML is well-formed (you saw how you can verify that in the previous section). But you need more information to determine that the contents of the data are valid.
The XML Schema specification provides XML elements that describe the contents of other XML data. XML Schema is a rich specification, allowing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access