Hand Editing the XML
Derek Atkins
warlord at MIT.EDU
Fri Jun 1 13:49:12 EDT 2007
It's actualy 128 bits.. It's not 32 chars, it's 32 hex digits.
It's just a random number to define the persistent identity of an
object and to use for cross-referencing between objects in long-term
storage. They're created by a random number generator. Or you could
leverage something like "uuidgen" from the e2fsprogs package -- just
be sure to remove the dashes ;)
-derek
Quoting Karl Grant <karlgrant06 at gmail.com>:
> Thanks for your replies. I meant 32 char (512 bit that would be). I'm not
> much of a programmer or scripter so i'll just have to manually enter them.
> Just out of curiosity, how is the GUID created. I'm assuming it's just a
> unique key for the record, but does it encode anything else?
>
>
> On 01/06/07, Ariel <asgnucash at dsgml.com> wrote:
>>
>>
>> On Fri, 1 Jun 2007, Derek Atkins wrote:
>>
>> > Quoting Karl Grant <karlgrant06 at gmail.com>:
>> >
>> >> I have a list of old customers and jobs that I would like to enter into
>> my
>> >> accounts. Would I be able to insert XML directly into the accounts file
>> and
>> >> manually create a 32bit GUID for the entries?
>> >
>> > No. For one thing, GUIDs are much bigger than 32 bits. ;)
>> > Seriously, tho, you probably do not want to do this by hand-editing
>> > the XML. You could write some scheme to create the entries, or
>> > you can just use the UI.
>>
>> You could use xte and script it. Won't be easy, but it might work.
>> Probably not worth the trouble though - unless you have quite a lot of
>> things to enter.
>>
>> -Ariel
>>
>
>
>
> --
> Karl
>
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-user
mailing list