Re: Newbie XML problem

2015-12-22 Thread KP
Thank you both - your help is much appreciated! -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie XML problem

2015-12-22 Thread jmp
On 12/22/2015 05:29 AM, KP wrote: From my first foray into XML with Python: I would like to retrieve this list from the XML upon searching for the 'config' with id attribute = 'B' config = {id: 1, canvas: (3840, 1024), comment: "a comment", {id: 4, gate: 3, (0,0, 1280, 102

Re: Newbie XML problem

2015-12-21 Thread Miki Tebeka
Hi, > config = {id: 1, canvas: (3840, 1024), comment: "a comment", > {id: 4, gate: 3, (0,0, 1280, 1024)}, > {id: 5, gate: 2, (1280, 0, 2560, 1024)}, > {id: 6, gate: 1, (2560, 0, 3840, 1024)}} This is not valid Python. Are you trying to have a list of d

Newbie XML problem

2015-12-21 Thread KP
>From my first foray into XML with Python: I would like to retrieve this list from the XML upon searching for the 'config' with id attribute = 'B' config = {id: 1, canvas: (3840, 1024), comment: "a comment", {id: 4, gate: 3, (0,0, 1280, 1024)}, {id: 5, gate: 2,