A relationship element has two required builder statements. Builder statements for the relationship element type describes the builder statements and arguments for a relationship element.

Table 1. Builder statements for the relationship element type

Builder statement

Description

Arguments

Required / optional

addRelationship( )

This adds the relationship to the XML document. It creates the open tag for the relationship declaration.

Relationship Name

Required

Method

Optional

addRelationshipClosing ()

Adds the closing tag for the relationship declaration in the XML file.

No Arguments

N/A

For example, to export all the objects with a Subscriptions relationship to the XML document, the builder statement resembles this:

builder->addRelationship("Subscriptions");
 foreach...
builder->addRelationshipClosing();