Re: xml dom (minidom) and python UPDATE

2012-10-23 Thread Bill Freeman
Have you tried simplified code on a simplified XML file, playing with it in the shell to get a feel for what you can and can't do? And built up from there. I'm sorry that I can't be more direct. I always reach for lxml and its elementTree emulation when I have XML to parse. Bill On Tue, Oct 23

xml dom (minidom) and python UPDATE

2012-10-23 Thread MikeKJ
Ok so I have realised that what I think I need is a dict of dicts so far I have a dict, stuff which will be populated by boat and engine BUT it doesnt seem to work using for z in [boat, engine]: stuff.update(z) to populate stuff but still seem to be getting a single boat result