update to process XML