[XML-SIG] Relative URI
Lars Marius Garshol
larsga@garshol.priv.no
31 Oct 2001 19:32:12 +0100
* Jan Delgado
|
| <unknown>:2:47: Cannot resolve relative URI 'order.dtd'
| when document URI unknown
|
| how can i set the document URI ?
You could use FromXmlFile or FromXmlUrl. There really ought to be a
baseUri parameter to FromXmlStream and FromXml, but there isn't now.
| the strange thing here is that when i use
| FromXmlStream(sys.stdin, validate=1) an pipe the
| file into the python script, everything is fine.
That would be a bug if this code actually did use the validating
parser. Have you checked, by making a validity error, that it's
actually using the validating parser?
--Lars M.