Documentation Center

autoMakeValid

The autoMakeValid element is an optional setting that determines the behavior when loading documents.

This configuration option, when set to True, will force a document to become valid when loaded. This feature applies the makeValid function when loading the document.

<x:config version="1.0" xmlns:x="http://www.xopus.com/xmlns/config">
  <x:validation>
    <x:autoMakeValid>true</x:autoMakeValid>
  </x:validation>
</x:config>

For example the following structure:

<section>
  <title>text</title>
  <paragraph>
    text
    <list>
      <item>more text</item>
    </list>
  </paragraph>
</section>

to the following (which is what the schema would be indicating):

<section>
  <title>text</title>
  <paragraph>
    text
  </paragraph>
  <list>
    <item>more text</item>
  </list>
</section>

You can only determine the full complexity and usefulness of this feature by trail and error.

Namespace

http://www.xopus.com/xmlns/config

Parent element

validation

History

VersionEvent
SDL LiveContent Create 5.0Introduction.