By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

value error when parsing XML

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ajay Brar wrote:
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?

Since you didn't say how you actually access your document - sax or dom - I
can't give you a definite answer. But for sax, try an entityresolver. For
dom, I've no idea, but I bet there is a solution, too.

--
Regards,

Diez B. Roggisch
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.