XElement parent issue fixed