Expose string_of_number and little bit of cleanup.
Merge pull request #46 from ocsigen/xmlprint

Expose string_of_number and little bit of cleanup.