Error parsing file on OS X

John Ralls jralls at ceridwen.us
Fri Sep 13 12:04:19 EDT 2013


On Sep 13, 2013, at 7:10 AM, Derek Atkins <warlord at MIT.EDU> wrote:

> Hi,Parameswaran S Prem <premps at sg.ibm.com> writes:
> 
> Like I said, look for a transaction with the datestamp of "Sun Aug 25
> 08:02:23 2013", I.e, "2013-08-25 08:02:23".  I don't recall whether the
> logfile is going to print in localtime or GMT, so the '08" might be off.

> 
>> I was trying to find whether I could see <trn:date-posted> and
>> <trn:date-entered> pairs (as below).  I didn't find any broken pairs.    
>> 
>> <trn:date-posted>
>>    <ts:date>2013-08-21 00:00:00 +0800</ts:date>
>> </trn:date-posted>
>> <trn:date-entered>
>>    <ts:date>2013-08-25 07:34:52 +0800</ts:date>
>> </trn:date-entered>  

The XML data file -- which is what P.S. should examine -- records dates as shown
in the snippet, as local time with a TZ offset. It happens that the logfile does as well:
        2013-08-11 08:08:24.000000 -0700        2013-08-11 08:08:24.000000 -0700
is an example from a recent logfile on my system.

>> 
>> Is there anything elase I should look for ?  
> 
> Yes, like I said, find the transaction with the above timestamp, and
> then look at that transaction and whatever is *next* in your datafile.

And note that you must look at the whole gnc:transaction element, not just the
trn:date-foo elements. Look in particular for an '&' or '<' in a value -- like a transaction
description. Those must be encoded in XML to & or <, respectively. The XML
backend is supposed to take care of that, but there might be an execution path that gets
around the check.

Regards,
John Ralls





More information about the gnucash-user mailing list