avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <ja...@zenplex.com>
Subject Re: Validate XML all the time?
Date Tue, 01 Oct 2002 02:11:21 GMT
On Mon, 2002-09-30 at 19:47, Peter Donald wrote:
> Hiya,
> Does anyone know of a method in which you can force an XML parser to validate 
> against a specific DTD regardless of whether it is declared or not. So 
> effectively I want to ignore the presence of DOCTYPE and always specify the 
> doctype myself. 
> I can see this is possible using external APIs or parser specific APIs but 
> does anyone know of any vaguely standard way of doing this. Set a feature of 
> some sort?

I use the Multi Schema Validator (msv) to make a Validator object that
can be used to validate a document against DTD, XSD, RelaxNG. Works
nicely and is pretty easy to use. It's worked great for me so far.

> -- 
> Cheers,
> Peter Donald
> He strains to hear a whisper who refuses to hear a shout.
> --
> To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

Jason van Zyl

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  -- Jacques Ellul, The Technological Society

To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>

View raw message