finally got xml working