Re: qualified name argument to startElement
Mikael Ståldal <[email protected]> Mon, 26 Apr 2004 17:25:18 +0200 (W. Europe Daylight Time)
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 25 Apr 2004, Elliotte Harold wrote: > 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. I have a problem with this. I have an application which uses the SAX ContentHandler interface as a general pipeline for XML data. The application (which is not a parser) invokes methods on a ContentHandler, and sometimes the XML data is programmatically generated, i.e. not originating from XML source. In that case there are no prefixes and no qualified names (only namespace URI:s and local names), and it would be a PITA to have to generate namespace prefixes which would not be used anyway. ------------------------------------------------------- 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