On Monday 12 April 2004 13:57, Miguel wrote:
> I am playing with the CML stuff to try to figure out how it works.
> I am only playing around to try to understand the SAX parsing process.
> In trying to open the file jmol/samples/conformeren.cml I am getting the
> error:
>   Relative URI "cml.dtd"; can not be resolved without a base URI
>
> I can make this message go away (and everything works fine) if I delete
> the lines:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE molecule SYSTEM "cml.dtd" [
>   ATTLIST list convention CDATA #IMPLIED
> ]>
>
>
> I have tried the following:
>  - defining my own resolveEntity()

You added this method to a Resolver class (see CDK for example), and 
registered this resolver with the XML parser (again see CDK?)

Another possible problem could be that you might be using the GNU JAXP parser, 
which requires the SYSTEM entities to have a protocol name... ie.
"file://cml.dtd"...

Egon


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to