https://issues.apache.org/bugzilla/show_bug.cgi?id=49707
--- Comment #4 from Marchant Jean-François <[email protected]> 2010-08-20 08:06:27 EDT --- The bug I encountered that is a consequence of the mistake in AbstractElement.setAttributeNS is quite complex - when I said that "getAttributeNodeNS" failed, it is the one in your code, not in my code - You say your code create a new attribute for me. Yes, but so I have as a result two attributes with the same name? - In my code, the bug arise when the attribute is an Id attribute like (xml:id). The consequence of your error was that the map 'elementsById' in your class "AbstractDocument" was not well updated. Finally, my call to "getElementById" on the document gave bad results. Anyway, I suppose you will fix the agreed error in "setAttributeNS"? Otherwise I would make a test like that: - create a document D with an element E with attribute xml:id="id1" - then I would call: E.setAttributeNS( ..., "xml:id", "id2"); - and finally I would test the result of a call to D.getElementById("id1") Guess it is non null and return elt E? Thanks for your support. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
