add `xmltree.clear`, fixes #3797 (#10711)
add `xmltree.clear`, fixes #3797 (#10711)

* add `xmltree.clear`, fixes #3797
* use `setLen`

dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim,dom96/Nim