[XML-SIG] Re: really weird pxdom error

Fredrik Lundh fredrik at pythonware.com
Wed Sep 1 13:22:14 CEST 2004

Malcolm Tredinnick wrote:

>> first of all i cant understand where it gets the name x08asedataschema.xml
>> secondly if i change into the directory where the schema is and then
>> execute, p = pxdom.parse("basedataschema.xml") it works perfectly fine.
> The Python interpreter is interpreting the backslashes before it gets
> passed to pxdom.parse(). In particular, '\b' is seen to be the backspace
> character (ASCII code 8) and treated as such.
> You need to pass in "proxy_pxdom_xpath\\basedataschema.xml" or use raw
> strings: r"proxy_pxdom_xpath\basedataschema.xml"

or use forward slashes.


More information about the XML-SIG mailing list