[Bugfix] Fixes line number when > 1000

Not sure how, but if you don't put a .ToString() the integer is
incorrectly written on the resulting xml : numbers bigger than
1000 are shown like 1 222 333, possibly depending on your settings.

Change-Id: I845758e3a3f6a365f836aed298f9290b09a17926