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>
> Where does it look for the dtd? local directory?
> Does it need a fully qualified path?
You can supply the fully qualified path or relative path.
In the example above it will search for the file myschema.dtd in the
directory where the file is sitting.
Hope this helps
Radovan
--
Radovan Chytracek CERN Division IT/API, Geant4
e-mail: [EMAIL PROTECTED] WWW: http://cern.ch/chytrace
phone: +41 22 76 78871
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]