Initial xml parsing