fixed storing xml document