Product Advertising API
Developer Guide (API Version 2011-08-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

XML Structures

Some data in XML documents are one dimensional, for example, <para>Sentence</para>. Some data, however, is structured, as shown in the following XML snippet.

<SubTotal>
  <Amount>2998</Amount>
  <CurrencyCode>USD</CurrencyCode>
  <FormattedPrice>$29.98</FormattedPrice>
</SubTotal>

This example shows that the subtotal is comprised of three pieces of data: Amount, CurrencyCode, and FormattedPrice. The example also shows that there can be a hierarchy of tags. In this example, Amount is a child tag of Subtotal. These structures represent arrays of values.