| XmlValidationHelperValidate Method (String, 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
Syntaxpublic bool Validate(
string document,
string schema
)
Parameters
- document
- Type: SystemString
Xml document to be validated.
Must be valid xml.
- 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