Converting LF/FF delimited logs to XML w/ Python?
Kadin2048
usenet.kadin at xoxy.net
Wed Dec 5 18:11:23 EST 2007
In article <mailman.1968.1196890782.13605.python-list at python.org>,
"Chris Mellon" <arkanes at gmail.com> wrote:
> This is a pretty simple problem and is well suited for a beginner
> project. The file() builtin will get you the data in your log file.
> Using the split() method of the string object, you can break your
> logfile into chunks.
Glad to hear I'm not jumping too far into the deep end, then. I figured
this had to be a fairly common/basic task.
> There are a number of XML libraries in the standard lib, but xml.etree
> is my preferred one. It is documented in the stdlib docs, and on the
> effbot site.
Excellent, I'll check it out further. effbot looks like a good resource.
Thanks,
Kadin.
More information about the Python-list
mailing list