Skip to Content
.NET & XML
book

.NET & XML

by Niel M. Bornstein
November 2003
Intermediate to advanced
476 pages
14h 38m
English
O'Reilly Media, Inc.
Content preview from .NET & XML

Name

XmlSchemaContentProcessing — System.Xml.Schema (system.xml.dll) serializable enum 

Synopsis

public enum XmlSchemaContentProcessing {
   None = 0,
   Skip = 1,
   Lax = 2,
   Strict = 3
}

This enumeration is used to specify the value of the processContents attribute in xs:any and xs:anyAttribute schema elements. Its value indicates how the content of the element or attribute is validated. When set to Lax, the validator will validate any items it can find definitions for, and skip the rest; the ValidationEventHandler will be called with a severity of XmlSeverityType.Warning to notify the client of any skipped items. When set to None, the items will not be validated at all. When set to Skip, the items will be checked for well-formedness but will not be validated; the ValidationEventHandler will be called with a severity of XmlSeverityType.Warning to notify the client that no validation was performed. When set to Strict, the items will be validated. In any case, if validation fails, the ValidationEventHandler will be called with an appropriate severity to notify the client of the error. If no ValidationEventHandler is assigned, an XmlSchemaException will be thrown.

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)XmlSchemaContentProcessing

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Applied XML Programming for Microsoft® .NET

Applied XML Programming for Microsoft® .NET

Dino Esposito
XML Hacks

XML Hacks

Michael Fitzgerald

Publisher Resources

ISBN: 0596003978Supplemental ContentErrata