XML representation of records and attributes

In XML, each record is represented as a collection of attribute value assignments (key value pairs).

In all of the Oracle Endeca Server web service interfaces, a record is represented in XML as a record element. The record element contains attribute elements (these attributes should not be confused with the term "attribute" used in the XML standard set of terms). Each attribute element contains the attribute values for the specified attribute.

If a record does not have a value for an attribute, the attribute is not included for that record.

If a record has multiple values for an attribute, there is a separate attribute element for each value.

The following XML represents a single data record with three standard attributes (ProductID, BikeType, and Color):
<Record>
  <ProductID type="mdex:int">12345</ProductID>
  <BikeType type="mdex:string">Road Bikes</BikeType>
  <Color type="mdex:string">Red</Color>
</Record>