Item 25. Pretend There's No Such Thing as the PSVI
Schemas are an extremely useful means of checking preconditions on XML documents before processing them. While schema validation normally can't detect every possible violation of an application's constraints, it can often detect a lot of them. However, some schema languages (especially the W3C XML Schema Language) have a second, less salutary purpose. Although support is mostly experimental so far, the W3C XML Schema specifications indicate that a truly schema-aware parser should produce a post-schema validation information set (PSVI).
The concept is that the PSVI includes not only the actual content of the XML document but also annotations about that content from schemas. In particular, it ...
Get Effective XML: 50 Specific Ways to Improve Your XML 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.