RE: [xsl] XML 2 XML using XSL,DTD XALAN - JAVA

Subject: RE: [xsl] XML 2 XML using XSL,DTD XALAN - JAVA
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Wed, 24 Nov 2004 15:34:17 +0200
Hi,

> I am using XALAN to transform my XML file to another XML file
> using XSL. I
> have a small JAVA program which does this. Does anyone knows
> How to validate
> an XML file against the DTD using JAVA ? Is there any methods
> available in
> XALAN to implement this ? If yes, could you please send me a
> sample example
> of how to it, please ?

Xalan will not perform DTD validation. You're probably using Xerces XML
parser, see their documentation how to turn validation on.

Cheers,

Jarno

Current Thread