Add XML version & encoding headers.
Add missing method comments.
Change XML tag <test> to <data>.