Expose the XDocument publicly to allow XPath queries.