"Patrick Lok" <[EMAIL PROTECTED]> writes:
> At 02:24 AM 8/30/01, you wrote:
>
>
> >Julia Larson wrote:
> >
> >>Please help a newbie who can't find it in the docs
> >>How do I specify a DTD to use with a DomParser instance?
> >
> >
> >Supply a DOCTYPE, e.g. :
> >
> ><?xml version="1.0" encoding="UTF-8"?>
> ><!DOCTYPE myroot SYSTEM "myschema.dtd">
> ><myroot>
> >...
> ></myroot>
>
> If the DOCTYPE is not in the document, is there a way to tell the
> DOMParser to parse some dtd file before parsing the actual file?
See the response that Julia posted to her own question. The
InputSource interface has both setPublicId() and setSystemId(). You
can apparently use these to create input sources and then set DTD's
for xml chunks without DOCTYPES.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]