Re: ElementTree : parse string input

2006-07-06 Thread Amit Khemka
> On 6 Jul 2006 07:38:10 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Any pointers to getting ElementTree to parse from a string would be > appreciated (of course I could dump it to a temp file, but that doesn't > seem elegent) You can use the "fromstring" method. Btw, did you looked at c

Re: ElementTree : parse string input

2006-07-06 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Hi, recently having discovered ElementTree I'm stumped by a very simple > problem, which I can't find the answer to. > > I have some XML in a string object. Now the parse() method of > ElementTree takes a filename or file-like object. So I tried creating a > StringIO ob

ElementTree : parse string input

2006-07-06 Thread rajarshi . guha
Hi, recently having discovered ElementTree I'm stumped by a very simple problem, which I can't find the answer to. I have some XML in a string object. Now the parse() method of ElementTree takes a filename or file-like object. So I tried creating a StringIO object from the original string and then