added check for legal xml attribute names
Merge pull request #1 from cqmckay/master

added check for legal xml attribute names