Last updated: 2024-06-07
XML Data (Object/Property)
In this topic:
Overview
SmartIntegrator's XML data is organized as Object and Property elements. Object elements represent data entities that contain a set of property elements. Property elements usually represent sample values but can also contain an object or an object array.
Example:
<Contact id="Contact.1.1">
<LastName>Ackerman</LastName>
<FirstName>Joe</FirstName>
<PreferredPhone>
<AreaCode>626</AreaCode>
<Number>5553505</Number>
</PreferredPhone>
</Contact>Object
Each object has a globally unique ID. The ID is stored in an object's id attribute. Objects may also have child objects. Child objects are embedded within the parent object's property elements.
Property
Property elements are child elements of an object element. There are five property types recognized by SmartIntegrator:
Simple Value
A property element may contain only a simple text value. For example:
<LastName>Ackerman</LastName>Child Object
A property element can represents another object and contain its own properties. For example:
<Contact id="Contact.1.1">
<PreferredPhone>
<AreaCode>626</AreaCode>
<Number>5553505</Number>
</PreferredPhone>
</Contact>Child Object Array
This kind of property element is an array of an object. For example:
<Contact id="Contact.1.1">
<Phones>
<Phone>
<AreaCode>626</AreaCode>
<Number>5553505</Number>
</Phone>
</Phones>
</Contact>ID
An ID property uniquely identifies an object and can only reference that one type of object. For example:
<PreferredPhoneId>Phone.1.1</PreferredPhoneId>Link Type
The Link Type property can reference different types of objects. For example:
<SmartPad id="SmartPad.65854.111">
<link>Activity.65854.125</link>
</SmartPad>
<SmartPad id="SmartPad.65854.112">
<link>Policy.65854.125</link>
</SmartPad>Value Format
SmartIntegrator uses standard XML to format values for request and response. Acceptable data types include:
| Type | Format | Examples |
|---|---|---|
| Boolean | 1 (true), 0 (false) | |
| String | ||
| Long, Integer, Short, Byte | Number format ######## | |
| Decimal, Double, Float | ######.#### | |
| Datetime | CCYY-MM-DD hh:mm:ssZ | 2002-09-02 23:20:30-0700 |
| Date | CCYY-MM-DD | 2002-09-02 |
| Time, Duration | hh:mm:ssZ | 23:20:30-0700 |
| Binary | Base 64 encoding |