value error when parsing XML

Ajay Brar abra9823 at mail.usyd.edu.au
Sat Jul 31 06:20:39 EDT 2004


hi!

i get a value error when parsing an xml file. This is because it can't 
find the DTD -
ValueError: unknown url type: ../um_xml/um.dtd

 From what i have discovered in the archives, this happens when your XML 
and DTD file are not in your current directory
i have the directory structure
home
      user - this is where i am running the script from
      um_xml- this is where the xml and dtd are

can someone please tell me how i can workaround this problem. the script 
executes fine when the xml and dtd files are in user/. But i don't 
really want to put them there.
any ideas?

thanks

cheers

-- 
Ajay Brar





More information about the Python-list mailing list