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