Construct XElement asynchronously.