How to parse xml with ISO-8859-1 encoding using ElementTree and SimpleXMLTreeBuilder?

2008-05-13 Thread Zvi
Hi All, I got trouble parsing xml returned by web service. XML data contains characters above 128, so ET.fromstring throws an error. Error is thrown from python's xmllib.py file, where it detects char above 128. I am replacing utf-8 encoding string in returned xml with 'ISO-8859-1', and then I cal

Re: Problem parsing SOAP envelope with ElementTree

2008-05-07 Thread Zvi
On May 7, 1:12 am, Waldemar Osuch <[EMAIL PROTECTED]> wrote: Thanks a lot :) P.S. It was a complete code, I didn't write anything else. -- http://mail.python.org/mailman/listinfo/python-list

Problem parsing SOAP envelope with ElementTree

2008-05-06 Thread Zvi
Hi All, Can someone tell me why id the following not working? I have a soap response envelope, for test purpose it's just a string and I create ElementTree from it. Then I try to find Response tag, but I get None. data = """http://schemas.xmlsoap.org/ soap/envelope/" xmlns:xsi="http://