Convert complex XML to Cache Object