LexicalPreservationConfig PreserveCDATA Property XML Compare .NET API Documentation
XML Compare .NET API Documentation - DEPRECATED
Controls whether marker elements are inserted to record where CDATA sections were used.

Namespace: DeltaXML.CoreS9Api.Config
Assembly: DeltaXML.CoreS9Api (in DeltaXML.CoreS9Api.dll) Version: 10.4.0.1000 (10.4.0.1000)
Syntax

public bool PreserveCDATA { get; set; }

Property Value

Type: Boolean
Remarks

Controls whether marker elements are inserted to record where CDATA sections were used.

The CDATA shorthand removes the need for entities and is a useful shorthand when authoring. The characters that an XML processor receives are identical irrespective of whether CDATA or entities are used.

This feature uses an element to record the position of CDATA sections in the input file.

<para><![CDATA[Hide & seek]]></para>

When this feature is true the output of this filter will be:

<para><preserve:cdata>Hide & seek</preserve:cdata></para>

When false, the text content is as before, only the marker element is missing:

<para>Hide & seek</para>

See Also