Convenient method to varify xmlfile before prsing it.
xml file to validate
true if xmlfile is valid, false otherwise
xmlfile