But this does only work if the xsd location is in the xml file.
I'll validate without having the xsd attribute in my xml file!

THX

Dirk


> -----Urspr�ngliche Nachricht-----
> Von: Reinhard Brandst�dter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 5. Januar 2004 14:01
> An: [EMAIL PROTECTED]
> Betreff: Re: Schema validation with SAX or DOMParser?
> 
> Gurdev Parmar wrote:
> 
> > Features:
> > http://apache.org/xml/features/validation/schema  to true.
> > http://xml.org/sax/features/namespaces to true
> > http://xml.org/sax/features/validation to true
> 
> It was my own stupidity that kept me from validating the file:
> 
> as you can see I only set the validation feature:
> 
>  >>reader.setFeature("http://xml.org/sax/features/validation";, true);
>
>>reader.setFeature("http://xml.org/sax/features/validation/schema",true);
> 
> the second feature string was incorrect - late night programming ;-)
> 
> Reinhard
> 
> --
> Reinhard Brandstaedter   [EMAIL PROTECTED]  GPG: 0x033B81DB
> -    Student of Computer Science - J.K. University of Linz     -
> -        <ICQ: 73059068>    <Mobile: +43 699 12419541>         -
> -                  http://adelaide.dnsalias.net                -
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to