XML Data Binding Wizard Options

From RAD Studio
Jump to: navigation, search

Go Up to File Menu

File > New > Other > Delphi Projects > XML > XML Data Binding > Options button

File > New > Other > C++Builder Projects > XML > XML Data Binding > Options button

Use this dialog box to determine how the XML Data Binding Wizard generates interfaces and implementation classes to represent an XML document or schema. The wizard is enabled only after a project is open in the IDE.

Item Description

Category

Choose a category of options such as Code Generation. The table at the right displays the options for the selected category.

Options table

Edit the values in the second column of the Options table to change one of the options that the wizard uses.When the Category is Data Type Map, this table displays the types that the wizard generates for each XML type that appears in the XML schema. You can edit these values to change the mapped type. For example, you may want to change a data type to Variant so that you can distinguish between an empty string and a blank value.

Property Get Prefix

Controls the name the wizard assigns to the methods it creates for reading property values. These methods consist of the Get prefix followed by the name of the property (element).

Property Set Prefix

Controls the name the wizard assigns to the methods it creates for writing property values. These methods consist of the Set prefix followed by the name of the property (element).

Class Name Prefix

Controls the names that the wizard assigns to implementation classes for nodes. These classes are given the name of the element or attribute with the Class Name Prefix prepended.

Interface Prefix

Controls the names that the wizard assigns to interfaces. These interfaces are given the name of the element with Interface Prefix prepended.

Node List Type Suffix

Controls the names that the wizard assigns to the classes and interfaces it generates for repeating collections of child nodes. These classes get the name of the child node tag, with Node List Type Suffix appended (and Class Name Prefix or Interface Prefix prepended).

Node Interface Base

Specifies the interface that is used as a base from which all generated interfaces for nodes are derived.

Node Class Base

Specifies the class that is used as a base class from which all generated implementation classes are derived. Node Class Base should implement the interface specified by Node Interface Base.

Collection Intf. Base

Specifies the interface that is used as a base from which all generated interfaces that represent repeating child nodes are derived.

Collection Class Base

Specifies the class that is used as a base class from which all classes that represent repeating child nodes

Default Data Type

Specifies the type that is assigned to nodes by default on the second page of the wizard.

See Also