Creates a copy of this, which should be freed with free .
Primarily used by language bindings, not that useful otherwise (since this can just be copied by assignment in C).
| this |
Root node of an XML tree. |
|
the newly allocated XML, which should be freed with free, or null if this was null. |