value error when parsing XML

From: Ajay Brar (abra9823_at_mail.usyd.edu.au)
Date: 07/31/04


Date: Sat, 31 Jul 2004 20:20:39 +1000
To: python-list@python.org

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


Relevant Pages

  • Re: Lets think who will like to say delphi is dying?
    ... if that particular DTD rules it out. ... there are 2 basic usage forms for XML. ... HTML is/canbe quite strict too. ... Parsing and compiling are kind of the same thing.. ...
    (borland.public.delphi.non-technical)
  • Re: standalone validating XML parser for Solaris?
    ... the unix command line to validate large XML files against an XML DTD. ... Older versions only parse but dont validate. ... More recent versions can validate against DTD or Schema. ...
    (comp.text.xml)
  • Re: DTD in browsers
    ... statement that "DTD for XML are always fetched" is totally correct. ... It is definitely fetched by XML parsers in known Web ... I just presume that Thomas was not aware of the current bug in Gecko ... agree that there is only one DOCTYPE and only one DTD mechanics equal ...
    (comp.infosystems.www.authoring.html)
  • How to skip validation of DTD file on VB.Net when the DTD is offline
    ... OK - I have an XML file from a vendor that uses a DTD files as follows: ... A connection attempt failed because ... connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& ...
    (microsoft.public.dotnet.languages.vb)
  • Re: A new paradigm
    ... AccuTerm GUI application for the WinDoze types and a ... With Coyote and a finished XML project, I'm sure that all of that could ... Tom H has taken over the DTD stuff recently ... XML-based development under OpenQM should take part in discussions on the ...
    (comp.databases.pick)