I've noticed another issue with Ledger's XML handling.

Although the XML Ledger outputs is now correct, it doesn't seem to be
able to read it as input. Running the following commands:

>ledger xml > test.xml
>ledger -f test.xml print

Results in no output or error message. The same thing happens for
balance and register commands.

Is Ledger 3 supposed to support processing XML or just exporting it?

Thanks,
Ryan

On Mon, Oct 24, 2011 at 3:08 PM, Ryan May <[email protected]> wrote:
> The commodity symbols are properly output to XML using the git code.
>
> Thanks,
> Ryan
>
> On Mon, Oct 24, 2011 at 2:09 PM, John Wiegley <[email protected]> wrote:
>>>>>>> rtjmay  <[email protected]> writes:
>>
>>> I'm having an issue with Ledger's XML output. I'm using version 2.6.2 from
>>> the Ubuntu 10.10 repo, and when I generate XML (using 'ledger xml') the
>>> information on currency type (commodity) is lost.
>>
>>> I use CAD and USD to represent Canadian and U.S, dollars, with CAD set as
>>> the default. But, the commodity tag for every transaction is empty,
>>> containing only a newline and some whitespace:
>>
>>>             <amount>
>>>               <commodity flags="S">
>>>                               </commodity>
>>>               <quantity>483.72</quantity>
>>>             </amount>
>>
>>> I am doing something wrong or is this a bug?
>>
>> I think it's a bug, but I am no longer supporting the 2.x series.  Can you
>> please try building the current beta from Git, and see if you still have a
>> problem?
>>
>> Thanks,
>>  John
>>
>

Reply via email to