[Sax-devel] Mutability of properties/features
Brought to you by:
dmegginson
From: John W. <tu...@wi...> - 2002-05-01 19:08:03
|
A setFeature() or setProperty() call "throws a org.xml.sax.SAXNotSupportedException When the XMLReader recognizes the property name but cannot set the requested value". Can and should the exception be thrown if the feature or property is immutable but the value being set is the value it already has? This is to say: if I make a call which doesn't change the value can I get a org.xml.sax.SAXNotSupportedException thrown? I note that the JUnit tests only try to change the value of immutable features they do not try setting them to their existing values (or, at least, that's what it looks like to me). John Wilson The Wilson Partnership http://www.wilson.co.uk |