Migrate from xml with two attributes as condition
You don't mention what XML source plugin you're using - is it MigrateSourceXML? If so, note that (as documented), it does not read in the entire XML file thus general-purpose xpath is not available, it implements a limited subset of xpath syntax for selecting the items to import. You should use MigrateSourceMultiItems when you need full xpath syntax.