HP e-Commerce / XML director server appliance sa8250 - Users Guide
C H A P T E R 2 HP e-Commerce/XML Director Server Appliance SA8250 User Guide
14
XML Data Model
For standard SA8250 operations, XML data consists of three
hierarchical components or nodes:
• Elements (data types)
• Attributes (subcategories of a data type or element)
• Text (specific data such as names, addresses, and quantities)
NOTE: We indented
XML commands for ease
of reading in this
document. However, the
leading spaces or tabs
are not significant.
The relevant content of an XML document is defined within these
three components. This example shows a block of incoming XML
text as received by the SA8250:
<employee>
<name lastName="Smith" firstName="John"
initial="K"/>
<id eid=”12345678” jobClass=”System
Engineer”/>
<benefits status=”active”>
<medicalCarrier>MedCo</medicalCarrier>
</benefits>
<grade title=”manager”>5</grade>
<address>
<street>13280 Evening Creek Dr</street>
<city>San Diego</city>
<state>California</state>
<zip>92128</zip>
</address>
</employee>
Where:
•
employee, name, id, benefits, grade, address,
street, city, state,
and zip are elements of the XML
document.
•
lastName, firstName, and initial are attributes of the
name element.
•
eid and jobClass are attributes of the id element.
•
13280 Evening Creek Dr, San Diego, California,
and 92128 are text components of the street, city,
state,
and zip elements, respectively.
XML expressions configured in the SA8250 are matched against
items as shown above and routed for fulfillment according to server
assignments.