MS22-64: Add code to get data location element for both before and after publish.