I would use a plain String.Format here instead of going through XLinq. Simpler, faster and much easier to see what output looks like.