XML, XPath and Python
Ah the power of XML Path Language (XPath)! Thanks once again to Brandon for his advice to look into the xpath stuff. As it turns out, it is going to be perfect for my configuration tree. At first, I saw it as just a slightly quicker way to narrow down the big DOM to something specific I was looking for, but as it turns out, I believe I’ll be able to use xpath and some wrappers to manage almost all of my config stuff. The attached screen shot shows the configuration tree that has been dynamically created from my cfcard.config (xml) file.

Obviously, I still have editing within the tree list to handle and then the subsequent writing out of the data back to the config file. That should be interesting… but at least I have something to show for my work.
No comments yet. Be the first.
Leave a reply