Java Reference
In-Depth Information
The XML generated by this example is much closer to the LEDES 2000 specification, as y ou can see
from Listing 18-13 . It still needs a little cleanup, particularly in terms of tidying up the date String. The
rest of the LEDES 2000 invoice document can be generated in much the same way.
Listing 18-13: XML invoice elements
<?xml version="1.0" encoding="UTF-8"?>
<matter>
<fee>
<charge_date>2002-04-16 00:00:00.0</charge_date>
<tk_id>1001</tk_id>
<charge_desc>Replace File</charge_desc>
<acca_task>L140</acca_task>
<acca_activity>A110</acca_activity>
<charge_type>F</charge_type>
<units>0.1</units>
<rate>400.0</rate>
<base_amount>40.0</base_amount>
<discount_type>percent</discount_type>
<discount_percent>12.5</discount_percent>
<total_amount>35.0</total_amount>
</fee>
<fee>
<charge_date>2002-04-12 00:00:00.0</charge_date>
<tk_id>1000</tk_id>
<charge_desc>Review File</charge_desc>
<acca_task>L110</acca_task>
<acca_activity>A101</acca_activity>
<charge_type>U</charge_type>
<units>1.5</units>
<rate>600.0</rate>
<base_amount>900.0</base_amount>
<discount_type>percent</discount_type>
<discount_percent>15.0</discount_percent>
<total_amount>765.0</total_amount>
</fee>
<fee>
<charge_date>2002-04-15 00:00:00.0</charge_date>
<tk_id>1000</tk_id>
<charge_desc>Analyse Case</charge_desc>
<acca_task>L120</acca_task>
<acca_activity>A104</acca_activity>
<charge_type>U</charge_type>
<units>1.0</units>
Search WWH ::




Custom Search