Share via


How to: Add XML Property Data

You can add XML property data to an existing class data node as described in the following procedure.

To add XML property data to class data

  1. In DSL Explorer, expand the Xml Serialization Behavior node, and then expand the Class Data node.

  2. Under the Class Data node, right-click the node to which you want to add XML property data, and click Add New Xml Property Data.

    An Xml Property Data node appears under the Element Data node, which is under the class data node that you clicked.

    Click the new node, and in the Properties window, change its properties to meet your requirements as described in the following table:

    Property

    Description

    Domain Property

    Property to which the xml serialization configuration data applies.

    Is Moniker Key

    If True, the property is used as the key for creating monikers.

    Is Moniker Qualifier

    If True, the property is used for creating the qualifier in monikers.

    Representation

    If Attribute, the property is serialized as an xml attribute; if Element, it is serialized as an element; if Ignore, it is not serialized.

    Xml Name

    Name used for the xml attribute or element representing the property.

See Also

Tasks

How to: Add XML Class Data

Other Resources

Customizing Serialization Behavior