Fixed 'SampleIsList' to work with xml and json spanning multiple lines (closes #312)