RE: Using CFXML to Make a Log File

2006-05-27 Thread Andy
Here is the code that I use. Right now I only have 1 log level, because I am in development, but I expect to have at least 3 - Security & Errors, Performance, and All:

Re: Using CFXML to Make a Log File

2006-05-26 Thread Michael Traher
Your first step is to CFDUMP XMLFile, this will give you a nice clear picture of the structure (structure of a structure of an array etc.). Then you can start to build up the correct syntax to refer to a specific element. Heres a snippet of code that I worked out to read an RSS feed it might be us

Re: Using CFXML to Make a Log File

2006-05-26 Thread Josh Nathanson
d be close. -- Josh - Original Message - From: "Ben Dyer" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Friday, May 26, 2006 12:50 PM Subject: Re: Using CFXML to Make a Log File > OK, I've spent a lot of time looking at the documentation and it's pretty > mu

Re: Using CFXML to Make a Log File

2006-05-26 Thread Ben Dyer
OK, I've spent a lot of time looking at the documentation and it's pretty much worthless to me. Doesn't explain a thing. The CFXML is creating a standard RSS file that you'd find on any blog. I want to insert a new and *ALL* of its child elements above any and all current tags. The code be

Re: Using CFXML to Make a Log File

2006-05-26 Thread Ben Dyer
OK, I've spent a lot of time looking at the documentation and it's pretty much worthless to me. Doesn't explain a thing. The CFXML is creating a standard RSS file that you'd find on any blog. I want to insert a new and *ALL* of its child elements above any and all current tags. The code below

Re: Using CFXML to Make a Log File

2006-05-26 Thread Josh Nathanson
You could probably use XmlChildPos and ArrayDeleteAt/ArrayInsertAt in some combination - check the docs for specific usage. -- Josh - Original Message - From: "Ben Dyer" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Friday, May 26, 2006 10:35 AM Subject: Using CFXML to Make a Log File > T

RE: Using CFXML to Make a Log File

2006-05-26 Thread Ian Skinner
Does anybody have any suggestions? I hope I'm explaining myself well enough. Thanks in advance for any help. --Ben To do what you want, you are going to have to load the file process the data in memory then re-write the file. If you can look at your file as a list, with some kind of delimit