a little bit of work for xml parser