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
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
2 matches
Mail list logo