Chapter Summary

only for RuBoard

In this chapter, you saw that schemas are an elegant way of validating XML instance documents. Instead of leaving developers to their own means to validate the data in an XML document, an XSD Schema can be applied to the XML instance document to validate the data if the XML document conforms to the rules agreed upon in the schema. You can validate the presence of elements and attributes, the order of elements, the cardinality of elements, and the number of times that an element can occur. You also saw how to define your types and extend those types to be used throughout your document.

You also saw that the .NET Framework classes provide access to read the structure of an XSD Schema and to programmatically create an XSD Schema. Using these classes, you can easily imagine creating a tool to display schemas graphically or to edit schemas through a utility.

Finally, you were introduced to the concept of readers and writers within the .NET Framework base classes. You used XmlValidatingReader to validate an XML document against a specified schema. Lastly, you saw how the ValidationEventHandler delegate event determines if an error occurred with the validation process.

only for RuBoard


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net