added a function to get content from a specified location (concerns not only documents)

dynamically get content