XML Data Binding Wizard, page 2

From Appmethod Topics
Jump to: navigation, search

Go Up to File Menu

File > New > Other > Object Pascal Projects > XML > XML Data Binding

File > New > Other > C++ Projects > XML > XML Data Binding

Use this wizard page to specify what code the wizard generates.

Item Description

Schema components

Displays a hierarchy of elements for which the wizard can generate interfaces and classes. This hierarchy is divided into complex elements (nodes that correspond to tags that have child nodes) and simple elements (simple data types that the schema defines for elements in the XML document). Nodes for complex types can be expanded to display nodes for the child elements. When you select a node in the Schema Components hierarchy, the right side of the dialog displays detailed information about the node and lets you indicate what code, if any, the wizard should generate for that node.

Source Name

Displays the name of the type or tag in the XML schema. Edit the value if you want the wizard to create or modify the schema file.

Source Datatype

Displays the type of the selected node, as defined in the XML schema. Edit the value if you want the wizard to create or modify the schema file.


Displays any comments from the XML schema to describe the type or node. Edit the value if you want the wizard to create or modify the schema file.

Generate Binding

Creates an interface and implementation class for a selected complex type, or a property on the parent interface and class for simple elements that are children of a complex type.

Identifier Name

Specifies the name of the interface to generate for a top-level complex type. For the children of a complex type, Identifier Name specifies the name of the property created for this child in the parent element's interface.

Doc Element Type

This option is available only for top-level complex types and indicates the type of the document element (the root of the data hierarchy).

Element Name

Specifies the tag name of the document element.

Data Type

For any child node, indicates the type for the property that represents this child element. If the child represents an element node that has children of its own, the drop-down list lets you select any interface type that the wizard generates for a complex type. If the child represents a simple element, the drop-down list lets you select a type such as Integer, String, or Variant. Note that representing simple child elements as Variants allows your application to distinguish between elements with an empty string for a value, and elements that do not appear in a particular document (Null Variants).


For child elements that represent complex types, indicates whether the parent node can have more than one child node of this type.

Access Mode

For child nodes that represent simple elements (as opposed to complex types), indicates whether the generated property is read/write or read-only.

Native Type

When a simple type is selected, specifies the data type that the wizard uses to represent values of that type.


Displays the XML Data Binding Wizard Options dialog box. You can select various options that influence how the wizard generates code for the interfaces and implementation classes in your XML document or schema.

See Also