allow both *.xml and *.rdf files as input