I'm not sure what you are asking, do you want a spawner only to activate if a player has a certain item equipped or do you want something to spawn when a player equips the item?
You don't need to use xmlspawner's function.
what you need to do is checking summoncreature.cs in spells/magery/fifth/
It will help you to finish your work.