An attribute element has only one required builder statement. Builder statements for the attribute element type describes the builder statement and arguments for an attribute element.

Table 1. Builder statements for the attribute element type

Builder statement

Description

Arguments

Required / optional

addAttribute( )

This adds the attributes of the instance to the XML document.

Instance Name

Required

Attribute Name

Required

Method

Optional

Note:

The closing builder statement is unnecessary for this element because there is no recursive part so we can predict the end of the statement.

Since the ICIM/XML DTD requires that attribute definitions are nested within an object definition, this builder statement is defined with an object element. For example, to export instances of the ServiceSubscriber class, with their display names, to the XML document the builder statement resembles the following:

builder->addObject(svcSub, "ServiceSubscriber");
builder->addAttribute (svcSub, "DisplayName");
builder->addObjectClosing();