OF-1271 Copy elements correctly
Adding elements and attributes to the new element doesn't work, since reparenting the old elements generates an exception. This exception wasn't logged. * Exception logged * id attribute copied, if present. * Elements copied deeply/properly. Test stanza: ``` <message xmlns="jabber:client" to="blah@conference.cridland.im" type="groupchat" id="5260"> <body>This is a message with a label.</body> <custom xmlns='tmp:custom'/> <custom-attr xmlns='tmp:custom2' attr='value'/> <custom-child xmlns='tmp:custom3'> <child>element</child> </custom-child> <custom-text xmlns='tmp:custom4'>Text here</custom-text> </message> ```
Showing
Please register or sign in to comment