thank you Laura, the validation feature is set to true. if i want to set the other feature, i get an exception:
org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/validation/schema-full-checking i don't know why it throws the exception. is there a certain property i must set additionally? Peter > You need to make sure that all the features and properties are set. > > parser.setFeature("http://xml.org/sax/features/validation", true); > parser.setFeature("http://apache.org/xml/features/validation/s > chema-full-checking", > true); > > is what i used. You might be setting different features, but > it sounds as if > they reason the entity resolver is not being called is > because you haven't told > your parser to perform validation with a schema correctly. > > Laura > > "Hellmann Peter (ext) ICM RDC IS VDR RD" wrote: > > > hi all, > > > > is it possible to find out if the dom parser has found the > schema file, > > referenced within a xml document file? > > the dom parser doesn't seem to find it, it proclaims i > should define tag x > > for all used tags. although i have > > set an entity resolver, the entity resolver doesn't get > called at all. if i > > use a dtd instead of a schema it > > all works fine. thanx 4 any hint. > > > > kind regards > > Peter Brightman --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
