simple fromXML method by Stax