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

xml dom (minidom) and python

2012-10-23 Thread MikeKJ
I cant see the wood for the trees here. help I got this big string of xml from a url which is of data associated to a boat and many boats the tags are 'VehicleRemarketingBoatLineItem' which is the overall tag for a boat set of data whcih contains various tags and tag groups, so dom = mi