logo       


qualified name argument to startElement: msg#00067

Subject: qualified name argument to startElement
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, sax-devel@xxxxxxxxxxxxxxxxxxxxx
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe