-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Sterk <[EMAIL PROTECTED]> writes:
> Hi,
>
> I am using the org.apache.xalan.transformer.TransformerImpl class to transform
> my XML document.
>
> If my incoming XML document has the following directive:
>
> <!DOCTYPE deptlistReply PUBLIC "-//ISE//deptlistReply DTD//EN"
> "file:/home/pster k/ih/test,v3.1.1/etc/dtds/deptlistReply.dtd" >
>
> and the dtd file does not exist, the Transformer class throws a
>
> javax.xml.transform.TransformerException: File
> "file:/home/psterk/ih/test,v3.1.1/etc/dtds/deptlistReply.dtd" not found.
>
> Does the dtd file have to exist, or is there a way for the TransformerImpl
> class to ignore it?
Check out the docs at xml.apache.org
You probably want to use an SAXParser and set these propeties
reader.setFeature( "http://xml.org/sax/features/validation", false );
reader.setFeature( "http://apache.org/xml/features/validation/schema",
false );
reader.setFeature(
"http://apache.org/xml/features/nonvalidating/load-dtd-grammar", false );
reader.setFeature(
"http://apache.org/xml/features/nonvalidating/load-external-dtd", false );
Have fun.
Kevin
- --
Kevin A. Burton ( [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] )
Location - San Francisco, CA, Cell - 415.595.9965
Jabber - [EMAIL PROTECTED], Web - http://relativity.yi.org/
Suppose you were an idiot. And suppose that you were a member of Congress. But
I repeat myself. -- Mark Twain
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
iD8DBQE8FruEAwM6xb2dfE0RAh/FAJ95fJQMq1BTSE9Dr+6jDfDtD+FaSACdEfP9
9LQ2+qYMLnWJQdhwcQa2zgI=
=Ntej
-----END PGP SIGNATURE-----