Abstract
In Chapters 2, 3, and 4, you learned how to read and write XML documents, though we always assumed that the XML structure (tag names, attribute names, nesting, and so on) contained in the source XML document was correct. However, in many real-world cases this assumption may not be true. For example, a purchase order application might be accepting orders from various customers in XML format. What is the guarantee that each submitted order adheres to the agreed-on XML structure? What if somebody deviates from the agreed-on structure? This is where XML schemas come into the picture.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Bipin Joshi
About this chapter
Cite this chapter
(2008). Validating XML Documents. In: Beginning xml with C# 2008. Apress. https://doi.org/10.1007/978-1-4302-0998-0_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0998-0_5
Publisher Name: Apress
Print ISBN: 978-1-4302-0997-3
Online ISBN: 978-1-4302-0998-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books