What worked for me so far was to store element and attribute names of .xsd in Dictionaries and check them in .xml-file.