[#BloombergLP-balxml-ValidatingReader-enableValidation]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/ValidatingReader.adoc[ValidatingReader]::enableValidation
:relfileprefix: ../../../
:mrdocs:

Enable or disable XML validation&period;

== Synopsis

Declared in `&lt;balxml&lowbar;validatingreader&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
enableValidation(bool validationFlag) = 0;
----

== Description

If the specified `validationFlag` is true, enable validation&semi; disable it otherwise&period; A validating reader is often faster if validation is disabled&period; This operation does not take effect until the next call to the `open` method&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *validationFlag*
| `true` to enable validation, `false` to disable it
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
