Re: [Saxdotnet-devel] Reducing the versioning / eliminating the Ixxx2 interfaces
Brought to you by:
jeffrafter,
kwaclaw
From: Elliotte H. <el...@me...> - 2004-12-07 18:30:25
|
Jeff Rafter wrote: > (1) Some implementations will not support the additional methods. Again, > these extensions are not required by the XML Specification to be > reported to the application. In such a case we will again turn to the > SaxNotSupportedExcpetion. If someone attempts to access isDeclared for > example and it is not supported by the implementation a > SaxNotSupportedException should be thrown. Suggestion: drop isDeclared from Attributes/Attributes2 completely and instead define a new "undeclared" value to be returned by getType for undeclared attributes. I suspect this would have been in SAX/Java if anyone had thought of it earlier; but the use cases that led to these methods in Attributes2 weren't uncovered till later. isSpecified is trickier, but I tend to think you should just add it to the Attributes interface and require parsers to support it. -- Elliotte Rusty Harold el...@me... XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim |