u can do like this
<!DOCTYPE MA SYSTEM "D:\Xml\XmlFiles\MA.DTD">
Cheers
VInod
-----Original Message-----
From: Julia Larson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 7:22 AM
To: '[EMAIL PROTECTED]'
Subject: RE: DTD and DomParser
Right, of course. But the original question was how to tell the
parser where to find the dtd. In particular, I did not want to
specify a URL, but use a local file.
Cheers,
-Julie
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:02 PM
To: [EMAIL PROTECTED]
Subject: Re: DTD and DomParser
"Julia Larson" <[EMAIL PROTECTED]> writes:
> Please help a newbie who can't find it in the docs
>
> How do I specify a DTD to use with a DomParser instance?
>
> Where does it look for the dtd? local directory?
> Does it need a fully qualified path?
You don't. The XML file you are parsing specifies using the DOCTYPE,
either with PUBLIC or SYSTEM. Then it is up to an entity resolver to
find it and give it to the parser.
jas.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]