update XmlElement as per comments on Pull Request

 - update documentation
 - remove validation of name parameter
 - add unit tests