Sprite: Using XDocument for writing.