parse submitted xml