supporting XML input files

implemented according to the discussion in the #12