Add XMLElement->setName method. Fixes #1603