This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I have just tested that with various long numbers and it is spot on, thank you so much.
I'm sceptical of your requirement for such a rigid format inside the XML. XML holds data and should not really care about the formatting of the values it holds. Only views of the XML data should be concerned with the format of displayed numbers.
Joined: Aug 18, 2010
The reason behind this is the XML is imported in a (not very well written) system, and it was falling over with length issues, hence I wanted to get it as close to the original template as possible.