Random photo
Loading...
Domains for sale
|
August 1, 2005New in .NET 2.0: Push-Based XML Validation with XmlSchemaValidator ClassThis is a real hidden gem in .NET 2.0 everybody (including me) have pretty much overlooked. XmlSchemaValidator class from the System.Xml.Schema namespace is a push-based W3C XML Schema validatation engine. Push-based means different processing model - an opposite for pull-based one. Think about how you work with XmlWriter (push) and XmlReader (pull). With (obsolete now) .NET 1.X's XmlValidatingReader and .NET 2.0's XmlReader with validation enabled you read XML to make sure it's valid. With XmlSchemaValidator you do the opposite - you ask it to validate XML bits using ValidateElement, ValidateAttribute, ValidateText etc methods. Which scenarios does XmlSchemaValidator enable:
August 1, 2005 1:05 PM
| #System.Xml v2.0
, #XML
Comments
Post a comment
|