Do you want to use it only in stdout? or in xml too?
And ont more question: what's wrong with XML file?