Arnaud Le Hors wrote: > > Pierpaolo Fumagalli wrote: > > > > I found a small "bug" or a discrepancy between how the SAX parser > > behaves and how the DOM parser does: > > That's not a bug. As far as the DOM Level 2 is concerned every namespace > declaration attributes is, by definition, bound to > "http://www.w3.org/2000/xmlns/". These are attributes whose the prefix > is "xmlns" or the qualifed name is "xmlns" (default namespace > declaration). This was recently decided so no public document reflects > this yet but, I'm the editor of the Core section of the DOM Level 2 spec > so you can trust me on that. ;-) > > This decision has been ratified by the XML Core WG and will be stated in > the next revision of the Namespaces for XML specification. Until then, I > think we'll have to live with this discrepancy.
Yes, but as far as I can see, since the xmlns prefix is bound to the "http://www.w3.org/2000/xmlns/", why does the SAX parser doesn't report it? In my code I check for that, but IMVHO, the parser itself should specify the URI when meeting a xmlns:* attribute... Pier -- -------------------------------------------------------------------- - P I E R - stable structure erected over water to allow the docking of seacraft <mailto:[EMAIL PROTECTED]> <http://www.betaversion.org/~pier/> -------------------------------------------------------------------- - ApacheCON Y2K: Come to the official Apache developers conference - -------------------- <http://www.apachecon.com> --------------------