LexicalPreservationConfig PreserveDefaultAttributeInfo Property XML Compare .NET API Documentation
XML Compare .NET API Documentation - DEPRECATED
Adds information about which attributes arose through the use of default attribute values in the DTD, as opposed to having explicit values.

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

public bool PreserveDefaultAttributeInfo { get; set; }

Property Value

Type: Boolean
Remarks

Adds information about which attributes arose through the use of default attribute values in the DTD, as opposed to having explicit values.

A DTD can contain attribute definitions such as the following:

<!ELEMENT myElement>
            <!ATTLIST myElement myAttribute CDATA "defaultValue">

When a value is defined in quotes like this, and the XML document is associated with this DTD using the DOCTYPE declaration, the attribute myAttribute will be present on every myElement element whether it has been explicitly added or not. If it is added by the parser, it will have the default value of defaultValue as defined in the DTD.

When true has been passed to this method, attributes that have default values assigned by the parser in this way will be marked by adding an attribute to the element like this:

<myElement myAttribute="defaultValue" <strong>preserve:defaultAttributes="{}myAttribute"</strong>>
where the attribute name is encoded in the form {URI}localName.

See Also