finally got the xml parsing working