xml parsing escape characters

"Martin v. Löwis" martin at v.loewis.de
Wed Jan 19 17:07:59 EST 2005


Luis P. Mendes wrote:
> I get the following result:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <string xmlns="http://www......"><DataSet>
> ~  <Order>

Most likely, this result is correct, and your document
really does contain

   <Order>


> I don't get any elements.  But, if I access the same url via a browser,
> the result in the browser window is something like:
> 
> <string xmlns="http://www......">
> ~  <DataSet>

Most likely, your browser is incorrect (or atleast confusing), and
renders < as "<", even though this is not markup.

> I already browsed the web, I know it's about the escape characters, but
> I didn't find a simple solution for this.

Not sure what "this" is. AFAICT, everything works correctly.

Regards,
Martin



More information about the Python-list mailing list