[XML-SIG] supress DTD reading

Roman Kennke roman at interview-machine.com
Thu Nov 27 05:25:21 EST 2003

> (When I try this with xml.dom.reader.Sax2.Reader with the following XML
> doc:
> <?xml version='1.0' ?>
> <!DOCTYPE env:Envelope SYSTEM "env.dtd"[]>
> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
>   <env:Body>
>     <test:echoOk xmlns:test="http://example.org/ts-tests">
>       foo
>     </test:echoOk>
>  </env:Body>
> </env:Envelope>
> I get an exception:
> ValueError: unknown url type: env.dtd

I suppose, this does not mean, that it the parser tried to read the DTD,
but it tried to parse the url and found, that it is not valid. I wonder,
if this is correct, IMO the URL is valid -- as a relative URL to the Base
URI of the referencing Document?

Cheers, Roman

SOAP for Python

More information about the XML-SIG mailing list