Some additions to xml version check