qualified name argument to startElement
Elliotte Harold <[email protected]> Sun, 25 Apr 2004 13:52:43 -0400
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
Currently in ContentHandler, the JavaDoc for startElement() says, the qualified name is required when the namespace-prefixes property is true, and is optional when the namespace-prefixes property is false (the default). I would like to change this to say, "the qualified name is always required." That is, regardless of how the features are set. In practice, this is how *all* SAX parsers written in Java behave, and much client code is written under the assumption that this is true. Indeed this is how most people except David Brownell interpreted the spec for a couple of years until I pointed out some minor inconsistencies, and he rewrote the spec to more clearly reflect his interpretation of the then unclear parts. Nonetheless, Brownell's parser, like everyone else's, does in fact always report the qualfiied name. Let's make it official. Every parser acts like it is already, and blessing this as the required behavior would make code a lot safer going forward without actually harming backwards compatibility. -- Elliotte Rusty Harold ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel