title: Which XML data type should I use for currency/money?
body: <p>After reading a few questions on what Java data type to use for currency/money, I have decided to use the int/long method, where you store the value of the currency/money as its lowest unit (such as cents).</p>
  
  <p><strong>Does this apply to storing the data as well (in XML)?</strong> </p>
  
  <p>The first thing that comes to my mind is no, because it will just be "parsed" into an <strong>XML decimal format</strong> when storing the data, and "parsed" back again when I read the data.</p>
  
  <p>Any suggestions are welcome, as I am new to this.</p>