Iterate over the contents of both snippets and full documents