Amount (metadata)

From Wikipedia, the free encyclopedia

In metadata, the representation term amount is used to designate a monetary quantity. Amount is used in ebXML, GJXDM and NIEM standards.

[edit] Example in XML

If you were sending information between to parties where the currency was known, you might use the following XML format:

  <PaymentTotalAmount>1234.00</PaymentTotalAmount>

If the currency type was not clear an attribute should also be added:

  <PaymentTotalAmount currencyTypeCode="USD">1234.00</PaymentTotalAmount>

Note that in most XML transactions, presentation such as leading dollar signs and comma are omitted.