PhoenixmlDb.Core

ValidationMode

Specifies how documents should be validated when stored in a container.

#ValidationMode

Namespace: PhoenixmlDb.Core

Specifies how documents should be validated when stored in a container.

Set via

. Validation is applied during

and its stream-based overload.

#Fields

Name Description
None No validation is performed. Documents are assumed to be well-formed. This is the default and offers the best write performance.
Schema Validates documents against an XML Schema (XSD) if one is associated with the container. Schema validation catches structural and type errors but adds overhead to writes.
WellFormed Validates that documents are well-formed XML or valid JSON, without schema validation. This is a lightweight check that catches syntax errors without the cost of full schema validation.

#See also