parsing xml + tokenization