Keith, My thought was something of a highbred, with the entire XML on one line. Basically <CFWDDX> the structure containing the object and <CFILE> to the log. I might add some header to the start of the line before saving, such as object name and date.
What do you think about this approach? Andy -----Original Message----- From: Keith Gaughan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 7:49 AM To: CF-Talk Subject: Re: Transaction History File -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andy wrote: > I am thinking about creating a transaction history for auditing, repairing > and undoing. I am thinking about using XML since this would be easy to > create and would adjust naturally to the addition of new attributes. > However, this would make the file sizes larger. > > What are everyone's thoughts about > 1. Keeping a transaction log Good! > 2. Keeping it in XML format Not so good. My objection here is that appending to the log would be prohibitively expensive. If you're doing logging, the format of your file needs to be something you can append to without needing to do any messing with the rest of the file. Because XML requires a root element, this makes using it for log files a bit impractical. However, If your log file was I-Can't Believe-It's-Not-XML ("most of the XML goodness, but without the root element"), it could work. Example: XML: <stuff> <foo bugs="babs"> <bar>Fred</bar> <baz>Barney</baz> </foo> <foo bugs="babs"> <bar>Fred</bar> <baz>Barney</baz> </foo> </stuff> ICBIN-XML: <foo bugs="babs"> <bar>Fred</bar> <baz>Barney</baz> </foo> <foo bugs="babs"> <bar>Fred</bar> <baz>Barney</baz> </foo> Changing ICBIN-XML into XML is simply a matter of prepending and appending the root element markup. K. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsBXCmSWF0pzlQ04RAmSPAKClLMdLa8GJjaPzoEo7XmKtEGqI1QCg8grw kam21JnddQjMSeiTQ9Qj/YE= =CWcc -----END PGP SIGNATURE----- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209540 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54