xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liam Brennan" <brennan_l...@hotmail.com>
Subject SAX DTD validation help - Urgent
Date Fri, 09 May 2003 20:30:53 GMT
Hi,

Could someone please explain to me how to use a DTD in a xalan-java program 
which would validate an XML file using this DTD, (without actually referring 
to the DTD in the XML file)

i intend to have a java program which would work from the command line like 
this

java myProgram -xml xmlfile.xml -dtd dtdfile.dtd

i just cant figure out where to initialise/place the dtd filename

- in the SaxParserFactory class you can only do setValidating(true) but you 
cant say which dtd file to use


any help would be greatly appreciated
Thanks.

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


Mime
View raw message