This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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.