urllib2 and Xml
John J. Lee
jjl at pobox.com
Fri Oct 10 03:22:36 CEST 2003
Glauco <glauco at sferacarta.com> writes:
> I'm building a library than can call a remote sistem in SOAP or in
> HTML for retrieve XML information.
> when i use HTML (httppost) with urllib2 i've this problem:
> if the response is something like this
> <?xml version="1.0" encoding="utf-8"?><string
> type="doc"><error_info><error><id /><des
> obviously is htmlquoted but this is uncomprensible from expat or minidom.
> i can manually htmlunquote but this don't like me.
> i've tyed whith urllib.unquote but this don't do nothing
> Is possible that urllib2 dont do this ?
This has nothing to do with urllib2. It's just faithfully telling you
what the server sent. Dealing with whatever crap that may include is
your problem <wink>.
More information about the Python-list