AttributeImpl is a helper class in SAX. Its addAttribute() method is namespace-aware.
Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org kesh...@us.ibm.com wrote on 02/15/2012 09:35:23 AM: > > This issue can happen in JDK 6 if an Attribute is created with SAX > > AttributeImpl addAttribute() method and a "type" string argument of > > Quick reminder: NOBODY should still be using the addAttribute() > method unless you are explicitly writing DOM 1.0 code. It is not > interoperable with DOM 2.0. Use addAttributeNS(). > > (Probably orthogonal to this discussion, but people keep making this > mistake so it's worth re-emphasizing.)