Open GoogleCodeExporter opened 9 years ago
I've had a bit of trouble related to choice elements as well, but I solved it a
different way.
I needed to be able to add the elements in choice to the siblings of the choice
element. The patch above was just returning the children within the choice.
My fix only gets the first element within choice, which worked for my useage,
but is still not ideal.
for e in children:
# If a choice element, return the first choice as the element to work with.
if e.get_local_name()=='choice'\
and e.children():
e = e.children()[0]
# Continue with loop
Original comment by j...@mclemoreauction.com
on 25 Jun 2011 at 4:49
Could you provide a xml messages to test this patches?
Original comment by reingart@gmail.com
on 6 Jan 2012 at 5:35
Unfortunately, I've ceased using this library, and no longer have the source
code to my modifications.
Original comment by j...@mclemoreauction.com
on 9 Jan 2012 at 10:49
i am pretty sure i'm still using it. i'll try and get some sample XML.
Original comment by cfho...@cfhowes.com
on 9 Jan 2012 at 10:53
Original issue reported on code.google.com by
cfho...@cfhowes.com
on 6 Mar 2011 at 11:27