```--- "Garg, Sanjeev" <[log in to unmask]> wrote:
> Hi everybody.
>
>     This might seem to be a very trivial problem for most of you. But its
> not working out for me.
>     I have my test.xml file on Solaris, which adheres to DTD rules from
> test.dtd.
>
>     The way, I have included DTD in the XML is:
>     <!DOCTYPE TestXML SYSTEM "test.dtd">
>
>     But somehow, when I run my application and it tries to parse the XML
> document, I get the following SAXParserException:
>  Relative URI "test.dtd"; can not be resolved without a document URI.
>
>     Both, the xml file and dtd file are sitting in the same directory.
>     Not to take chance, I have tried giving the absolute path of the dtd.
>
>     I was getting the same kind of error in Windows as well. It was because
> of the way I referred to my DTD.
>     e.g
>     <!DOCTYPE TestXML SYSTEM "c:\\test.dtd">  was generating the same error.
>     But when I referred it as:
>     <!DOCTYPE TestXML SYSTEM "file:///c:/test.dtd"> ; it started working.
>
>     Now how to do the same thing on a UNIX system???