Hi Robert,

glad you found a solution :-)
The reason your code failed is this: when you detach the attribute from the newElem, it is also removed from the attrs List. So the way you iterate through that list is not correct.


regards,
Maarten

Robert Koberg wrote:

So looking closer at the API, I see Element.appendAttributes... duh...

I have to stop thinking the way I did with JDOM...

sorry for the bother,
-Rob


I wrote:

I am trying to replace/exchange attributes from a new element to an existing element.



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to