Storing document URI in elements