Check if xmlfile or xmlstring is not empty