AW: Schema validation with SAX or DOMParser? 2004-01-05 - By Bromberg, Dirk / encoway
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:r.brandstaedter@(protected)] > Gesendet: Montag, 5. Januar 2004 14:01 > An: xerces-j-user@(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 r.brandstaedter@(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: xerces-j-user-unsubscribe@(protected) > For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|