Skip to main content

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:


XML
<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:


XML
<LastName>Ackerman</LastName>

Child Object


A property element can represents another object and contain its own properties. For example:


XML
<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:


XML
<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:


XML
<PreferredPhoneId>Phone.1.1</PreferredPhoneId>


The Link Type property can reference different types of objects. For example:


XML
<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:


TypeFormatExamples
Boolean1 (true), 0 (false)
String
Long, Integer, Short, ByteNumber format ########
Decimal, Double, Float######.####
DatetimeCCYY-MM-DD hh:mm:ssZ2002-09-02 23:20:30-0700
DateCCYY-MM-DD2002-09-02
Time, Durationhh:mm:ssZ23:20:30-0700
BinaryBase 64 encoding