Read doc to simple xml