Re: ElementTree should parse string and file in teh same way

2007-12-31 Thread James Matthews
When dealing with files you pass it an object! So make your string an object and then it should work! On Dec 31, 2007 8:17 AM, Paddy <[EMAIL PROTECTED]> wrote: > On Dec 31, 3:42 am, "Peter Pei" <[EMAIL PROTECTED]> wrote: > > One bad design about elementtree is that it has different ways parsing a

Re: ElementTree should parse string and file in teh same way

2007-12-30 Thread Paddy
On Dec 31, 3:42 am, "Peter Pei" <[EMAIL PROTECTED]> wrote: > One bad design about elementtree is that it has different ways parsing a > string and a file, even worse they return different objects: > 1) When you parse a file, you can simply call parse, which returns a > elementtree, on which you can