• Dave Cridland's avatar
    OF-1271 Copy elements correctly · c085118f
    Dave Cridland authored
    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>
    ```
    c085118f
Name
Last commit
Last update
..
apache/mina/management Loading commit data...
dom4j/io Loading commit data...
jivesoftware Loading commit data...