Can now parse the following expressions - a mix of bkeeping, xml and xpath:
[Bookkeeping.git] / xml / bookkeeping.transactions.xml
blob38a74907fe721253cf69dcf02855d370f9edd325
1 <?xml version='1.0' encoding='UTF-8'?>
2 <bookkeeping id='' 
3     xmlns='com/interrupt/bookkeeping'
4     xmlns:account='com/interrupt/bookkeeping/account'
5     xmlns:journal='com/interrupt/bookkeeping/journal' >
6     
7     <account:accounts id='' >
8                 
9                 <!--    1. account types are: asset,liability,expense,revenue,capital
10                                 2. each account has a given counterWeight(debit or credit)
11                 -->
12                 <account:account type='' id='' name='' counterWeight='' >
13                         
14                         <account:debit />
15                         <account:credit />
16                 </account:account>
17     </account:accounts>
18     
20         <journal:transactions id='' >
21                 
22                 
23             <!-- ** state can be 'open' or 'closed' -->
24             <journal:transaction id='' state='' journal='' date=''  >
25                 
26                 
27                 <!-- 1. each entry should have an 'entryid'
28                      2. each debit/credit object has a reference to an 'entryid'
29                      3. each debit/credit object has a reference to an 'accountid'
30                     
31                      ** state can be 'open', 'closed', or 'reversed' 
32                 -->
33                 <journal:entries id='' >
34                 <journal:entry id='' entrynum='' state='' journalid='' date='' >
35                     <account:debit id='' amount='' entryid='' accountid='' />
36                     <account:credit id='' amount='' entryid='' accountid='' />
37                 </journal:entry>
38                 </journal:entries>
39             </journal:transaction>
40             
41         </journal:transactions>
42                 
44 </bookkeeping>