Title: RE: DTD Resolution Question

The DTD should be in the same directory as the document (at least, that's the way Xerces finds it - don't know if Crimson does anything odd with entity resolution on the way).

John

-----Original Message-----
From: Christopher Ebert [mailto:[EMAIL PROTECTED]]
Sent: 26 April 2002 18:58
To: [EMAIL PROTECTED]
Subject: RE: DTD Resolution Question



        Hi,

        I don't know the answer, but here's how I'd find out. Are you on
a Unix system? If so, you can 'truss' the process as it runs and watch
to see what directories it scans. On Windows I think there's a tool to
do the same (maybe Dr Watson or whatever's replaced it has something?)

        HTH

        Chris


-----Original Message-----
From: Jason Rizer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: DTD Resolution Question


Hello,

First of all, I realize that this is slightly off
topic as it deals specifically with crimson and not
xerces, but I think it's really a JAXP question so I'm
going to post it here anyway :)  Besides, I couldn't
find a crimson list.

I'm using a third party tool which includes jaxp.jar
and crimson.jar (I think that this is the jaxp 1.01
bundle) to perform a sax parse.  Everything works find
when I supply it with XML input which doesn't specify
a DTD.  If the XML I provide DOES specify a dtd, the
parse fails.  I have the DTD in question, but I can't
figure out where to put it.  If I were coding against
the parser directly I'd set an entity resolver, but
I'm not.  Here is the relevent snippet of the third
party code:

SAXParserFactory factory = 
SAXParserFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
XMLReader myReader = 
factory.newSAXParser().getXMLReader();
myReader.setContentHandler(this);
myReader.setErrorHandler(this);
myReader.parse(new InputSource(is));

Again, this is all code I can't modify.  Here is the
relevent snippet of the offending xml document:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE XMI SYSTEM "CWM_1.0.dtd" [
<!ELEMENT ixafs (ixaftv)+ >
<!ATTLIST ixafs
            n CDATA #REQUIRED
>
<!ELEMENT ixaftv EMPTY >
<!ATTLIST ixaftv           
            t CDATA #REQUIRED
            v CDATA #REQUIRED
>]>

So, if anyone can give me any clue to where I should
put CWM_1.0.dtd I would greatly appreciate it.  Thanks
in advance.

-Jason

__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

The information transmitted by this e-mail message is intended solely for the use of the person to whom or entity to which it is addressed. The message may contain information that is privileged and confidential.  Disclosure, dissemination, distribution, review, retransmission to, other use of or taking any action in reliance upon this information by anyone other than the intended recipient is prohibited. If you are not the intended recipient, please do not disseminate, distribute or copy this communication, by e-mail or otherwise. Instead, please notify us immediately by return e-mail (including the original message with your reply) and then delete and discard all copies of the message.

Although we have taken precautions to minimize the risk of transmitting viruses we nevertheless advise you to carry out your own virus checks on any attachment to this message. We accept no liability for any loss or damage caused by viruses.

Reply via email to