469,282 Members | 2,373 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

value error when parsing XML

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
1 1945
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.

Similar topics

5 posts views Thread by Robert Oschler | last post: by
6 posts views Thread by ST | last post: by
2 posts views Thread by Tom | last post: by
reply views Thread by =?Utf-8?B?VWxmIFRob3JzZW4=?= | last post: by
3 posts views Thread by =?Utf-8?B?RGFuYQ==?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.