Convert to numbers
Merge pull request #13 from yangl1996/xmlextract-improvments

Tested and merge.