Click or drag to resize

XmlValidationHelperValidate Method (XmlDocument, String)

Validates a xml document against a schema. Validation errors (if any) can be retrieved in ValidationErrors.

Namespace:  Omada.OE.AppLogic.Helpers
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public bool Validate(
	XmlDocument document,
	string schema
)

Parameters

document
Type: System.XmlXmlDocument
Xml document to be validated.
schema
Type: SystemString
Name of an xml schema that is known by the application (that is, there exists an XmlSchema data object for it). Important: the schema name must be the same as the target namespace of the schema.

Return Value

Type: Boolean
See Also