Creates an element from the source of a file