System.Xml.Schema.XmlSchemaValidator Members

The members of System.Xml.Schema.XmlSchemaValidator are listed below.

See Also: Inherited members from System.Object

Public Constructors

Public Properties

LineInfoProviderSystem.Xml.IXmlLineInfo.

Gets or sets the line number information for the XML node being validated.

SourceUriUri.

Gets or sets the source URI for the XML node being validated.

ValidationEventSenderobject.

Gets or sets the object sent as the sender object of a validation event.

[write-only]
XmlResolverSystem.Xml.XmlResolver.

Sets the System.Xml.XmlResolver object used to resolve xs:import and xs:include elements as well as xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes.

Public Methods

AddSchema(XmlSchema)

Adds an XML Schema Definition Language (XSD) schema to the set of schemas used for validation.

EndValidation()

Ends validation and checks identity constraints for the entire XML document.

GetExpectedAttributes() : XmlSchemaAttribute[]

Returns the expected attributes for the current element context.

GetExpectedParticles() : XmlSchemaParticle[]

Returns the expected particles in the current element context.

GetUnspecifiedDefaultAttributes(ArrayList)

Validates identity constraints on the default attributes and populates the ArrayList specified with System.Xml.Schema.XmlSchemaAttribute objects for any attributes with default values that have not been previously validated using the erload:System.Xml.Schema.XmlSchemaValidator.ValidateAttribute method in the element context.

Initialize()

Initializes the state of the System.Xml.Schema.XmlSchemaValidator object.

Initialize(XmlSchemaObject)

Initializes the state of the System.Xml.Schema.XmlSchemaValidator object using the System.Xml.Schema.XmlSchemaObject specified for partial validation.

SkipToEndElement(XmlSchemaInfo)

Skips validation of the current element content and prepares the System.Xml.Schema.XmlSchemaValidator object to validate content in the parent element's context.

ValidateAttribute(string, string, string, XmlSchemaInfo) : object

Validates the attribute name, namespace URI, and value in the current element context.

ValidateAttribute(string, string, XmlValueGetter, XmlSchemaInfo) : object

Validates the attribute name, namespace URI, and value in the current element context.

ValidateElement(string, string, XmlSchemaInfo)

Validates the element in the current context.

ValidateElement(string, string, XmlSchemaInfo, string, string, string, string)

Validates the element in the current context with the xsi:Type, xsi:Nil, xsi:SchemaLocation, and xsi:NoNamespaceSchemaLocation attribute values specified.

ValidateEndElement(XmlSchemaInfo) : object

Verifies if the text content of the element is valid according to its data type for elements with simple content, and verifies if the content of the current element is complete for elements with complex content.

ValidateEndElement(XmlSchemaInfo, object) : object

Verifies if the text content of the element specified is valid according to its data type.

ValidateEndOfAttributes(XmlSchemaInfo)

Verifies whether all the required attributes in the element context are present and prepares the System.Xml.Schema.XmlSchemaValidator object to validate the child content of the element.

ValidateText(string)

Validates whether the text string specified is allowed in the current element context, and accumulates the text for validation if the current element has simple content.

ValidateText(XmlValueGetter)

Validates whether the text returned by the System.Xml.Schema.XmlValueGetter object specified is allowed in the current element context, and accumulates the text for validation if the current element has simple content.

ValidateWhitespace(string)

Validates whether the white space in the string specified is allowed in the current element context, and accumulates the white space for validation if the current element has simple content.

ValidateWhitespace(XmlValueGetter)

Validates whether the white space returned by the System.Xml.Schema.XmlValueGetter object specified is allowed in the current element context, and accumulates the white space for validation if the current element has simple content.

Public Events

ValidationEventHandler

The System.Xml.Schema.ValidationEventHandler that receives schema validation warnings and errors encountered during schema validation.