LexicalPreservationConfig PreserveProcessingInstructions Property XML Compare .NET API Documentation
XML Compare .NET API Documentation - DEPRECATED
Controls whether processing instructions are converted into XML markup.

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

public bool PreserveProcessingInstructions { get; set; }

Property Value

Type: Boolean
Remarks

Controls whether processing instructions are converted into XML markup.

For example, with this input and setting of true for the preserve parameter:

<?dbfo table-width="50%"?>
<pi:dbfo>table-width="50%"</pi:dbfo>
the processing instruction would be converted into:

When the processing instructions are contained within the root element of an XML file they appear in their converted form as in the example above. However, when outside of the root element they need to be moved and they will then appear as a child of either <preserve:comments-and-pis> element with a range attribute indicating their position, or as a child of the <preserve:doctype> element.

See Also