parsing of media & file elements