I'd like to know how I can activate, or checks thant the incoming XML
file fulfill the given DTD, and If the result is success, applying my
xslt to it.

I'm using Xerces, Xalan.



Hi Xalan,

With Xerces-J what you need to do is set the dtd validator to true. Then
within your xml you make a reference to a DTD or include the actual DTD.
Usually a reference is the way to go. The parser will then compare but
not report any errors. 

Take a look at the following URL that I found helpful when I ran into
the same hurdle:   http://www.ecerami.com/xerces/  At the bottom of the
page there is reference to the validation....... with an example.


Kind regards,

Pete

Reply via email to