<div dir="ltr">I have used GnuCash for many years, building up huge XML files, and never had an issue until I tried some auto-entry with a program.  If the file is not EXACTLY what it expects, it will fail.<div><br></div><div>No problem getting data out, though it can be processor intensive to rebuild the trees.  But I have not had the patience to dig into source code to be able to write to it.</div><div><br></div><div>It would be nice to have a high level API to allow auto entry, modify reports, etc.</div><div><br></div><div>-Dan<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 3:04 AM, Hartmut W Sager <span dir="ltr"><<a href="mailto:hwsager@marityme.net" target="_blank">hwsager@marityme.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">OK, it's late at night, and I did something that Trevor likes doing.  :)  I went looking for trouble.  But hey, I had a good reason, and had been planning this experiment for weeks already.<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:#000000"> <br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">My current accounting is still my own FoxPro concoction (started in 1992 and updated a few hundred times), and for the last few years I knew I would have to move it.  Besides export/import issues, I have several extra fields of information that I need to preserve (even if not accessible outside of raw XML editing), so I edited a good GnuCash native XML file by adding a secret payload in one existing transaction with <mynewtag>mypayload</mynewtag><wbr>, at the same level as the other fields of that transaction.  I was hoping it would be ignored on load, and restored on save.<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:#000000"> <br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">The result:  GnuCrash crashed totally while opening the edited XML file!  Yeah, just crashed with a crash message and self-quit after that.  Is GnuCash that unstable???<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:#000000"> <br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">BTW, a simple raw XML edit of an existing text field of a transaction works fine, and is then shown in GnuCash when the file is opened.<br></div><div style="font-family:verdana,sans-serif;font-size:small;color:#000000"> <br></div><div><div class="m_-4402453760844435235gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font size="2"><span style="font-family:verdana,sans-serif">Hartmut W Sager - Tel <a href="tel:(204)%20339-8331" value="+12043398331" target="_blank">+1-204-339-8331</a><br></span></font><br></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br>______________________________<wbr>_________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.ca">Roundtable@muug.ca</a><br>
<a href="https://muug.ca/mailman/listinfo/roundtable" rel="noreferrer" target="_blank">https://muug.ca/mailman/<wbr>listinfo/roundtable</a><br>
<br></blockquote></div><br></div></div></div>