Conclusion

XML validation is the parser’s ability to verify that a given XML source document is comformant to a specified layout. The intrinsic importance of validation, and related technologies, can’t be denied, but a few considerations must be kept in mind.

For one thing, XML documents and schema information must be distinct elements. This improves performance when the document is transferred over the wire and keeps the memory footprint as lean as possible. In addition, validating a document to make sure it has the requested layout is not always necessary if the correctness of the data two applications exchange can be ensured by design. If the documents sent and received are generated programmatically and there is no (reasonable) way to hack ...

Get Applied XML Programming for Microsoft® .NET 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.