Work in Progress. Suggestions welcomed. Got it working!
<?xml version="1.0" ?>
<spellcast>
<config
HideErrors="false"
RestingSet="Resting Gear"
NormalSet="Standard"
ShowGearSwaps="false"
Debug="true"
/>
<sets>
<group default="yes" name="Blue Mage">
<set name="Standard">
<main>Perdu Hanger</main>
<sub>Demon Slayer</sub>
<head>Walahra Turban</head>
<neck>Fortitude Torque</neck>
<lear>Loquacious Earring</lear>
<body>Magus Jubbah</body>
<hands>Homam Manopolas</hands>
<rear>Brutal Earring</rear>
<rring>Rajas Ring</rring>
<lring>Flame Ring</lring>
<back>Forager's Mantle</back>
<feet>Homam Gambieras</feet>
<legs>Homam Cosciales</legs>
<waist>Swift Belt</waist>
</set>
<set name="Resting Gear" BaseSet="Standard">
<main>Dark Staff</main>
<sub>Bugard Strap +1</sub>
<lear>Relaxing Earring</lear>
<rear>Antivenom Earring</rear>
<waist>Qiqirn Sash +1</waist>
<neck>Grandiose Chain</neck>
<head>Yigit Turban</head>
<body>Yigit Gomlek</body>
<legs>Yigit Seraweels</legs>
<feet>Yigit Crackows</feet>
<hands>Yigit Gages</hands>
<back>Invigorating Cape</back>
</set>
<set name="MagAcc" BaseSet="Standard">
<head>Homam Zucchetto</head>
<hands>Yigit Gages</hands>
<feet>Denali Gameshes</feet>
<waist>Penitent's Rope</waist>
<rring>Snow Ring</rring>
<lring>Balrahn's Ring</lring>
<back>Prism Cape</back>
</set>
<set name="MagAtk" BaseSet="Standard">
<head>Yigit Turban</head>
<hands>Yigit Gages</hands>
<feet>Yigit Crackows</feet>
<waist>Penitent's Rope</waist>
<rring>Snow Ring</rring>
<lring>Balrahn's Ring</lring>
<back>Prism Cape</back>
</set>
<set name="Mnd" BaseSet="Standard">
<head>Yigit Turban</head>
<body>Errant Houppelande</body>
<legs>Mahatma Slops</legs>
<feet>Yigit Crackows</feet>
<hands>Yigit Gages</hands>
<waist>Penitent's Rope</waist>
</set>
</group>
</sets>
<rules>
<rule group="Blue Mage">
<rule Spell="Magic Fruit|Wild Carrot|Pollen|Healing Breeze">
<action type="equip" when="midcast" set="Mnd">
</action>
</rule>
<rule Spell="Metallic Body|Diamondhide">
<action type="DefaultTarget" Target="<me>" />
<action type="equip" when="midcast" set="MND">
</action>
</rule>
<rule Spell="Mind Blast|Magic Hammer">
<action type="equip" when="midcast" set="MND">
</action>
</rule>
<rule Spell="Foot Kick|Power Attack|Sprout Smack|Wild Oats">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Helldive|Bludgeon|Claw Cyclone|Screwdriver|Grand Slam">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Smite of Rage|Pinecone Bomb|Jet Stream|Uppercut|Terror Touch">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Queasyshroom|Battle Dance|Head Butt|Feather Storm">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Mandibular Bite|Sickle Slash|Death Scissors|Dimensional Death">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Body Slam|Spinal Cleave|Frenetic Rip|Frypan|Hydro Shot">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Tail Slap|Hysteric Barrage|Cannonball|Disseverment|Ram Charge|Vertical Cleave">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
<rule Spell="Soporific|Geist Wall|Blank Gaze|Jettatura|Yawn|Sheep Song">
<action type="equip" when="midcast" set="MagAcc">
</action>
</rule>
<rule Spell="Awful Eye|Venom Shell|Temporal Shift|Filamented Hold|Voracious Trunk">
<action type="equip" when="midcast" set="MagAcc">
</action>
</rule>
<rule Spell="Feather Tickle|Frightful Roar|Stinking Gas|Chaotic Eye|Infrasonics">
<action type="equip" when="midcast" set="MagAcc">
</action>
</rule>
<rule Spell="Cold Wave|Lowing|Sound Blast">
<action type="equip" when="midcast" set="MagAcc">
</action>
</rule>
<rule Spell="Utsu*|Refuel*|Zephyr*">
<action type="equip" when="midcast" set="Standard">
</action>
</rule>
</rule>
</rules>
</spellcast>