Correct processing tags in XML-datafiles