Processing XML

Timothy Grant tjg at exceptionalminds.com
Mon Mar 5 23:44:14 EST 2001


Hi all,

For all of you at P9, I hope you are having a grand time, I
wish I could be there!

Now on to the questions:

I am far from an XML expert. I can create a well formed XML
document and that's about it.

I am working on a significantly large project where I have to
store large quantities of configuration information. Right now
I store them in a file format that can be read by LParser. It
works beautifully well, and returns a dictionary of
dictionaries of values.

However, as the project has expanded, I find myself requiring
more and more information to be stored, not only does that make
my config files more difficult to read by hand, it also makes
them more difficult to write. Hence, my interest in XML.

I have Sean McGrath's book on XML Processing with Python, and
have played a bit with Pyxie. At the moment I can accomplish
more with Pyxie than I can with PyXML on its own. However, for
some reason I'm a bit uncomfortable with it for some reason.
Part of my discomfort comes from the fact that part of my
interest in XML is that it is so broadly useful. I am curious
as to whether I will come to a point where I find Pyxie to be
limiting the usefulness of my use of XML.

If Pyxie is a good choice, how do I add nodes to a document
stored as an xTree?

Also, as stated above, I currently move all of the
configuration data into a dictionary of dictionaries. This
works very well, However, I may be able to get equally good
access to the information I need by walking the XML tree
instead of putting things in a dictionary. Is my assumption
correct, or silly, or perhaps both. Does anyone have any better
suggestion?

Thanks much for your input.

-- 
Stand Fast,
    tjg.

Timothy Grant                         tjg at exceptionalminds.com
Red Hat Certified Engineer            www.exceptionalminds.com
Avalon Technology Group, Inc.         <><       (503) 246-3630
>>>>>>>>>>>>>Linux, because rebooting is *NOT* normal<<<<<<<<<
>>>>This machine was last rebooted:  48 days  8:41 hours ago<<




More information about the Python-list mailing list