I fixed it myself
If you look at the line i posted before, you'll see that there will be set together the name of a variable. This variable is used to read the name of the cure spell from the ProfitUI_Cures.txt. What i didn't see is that it always adds a string called 'Cure' after the name of this variable (marked bold):
<Button Name="GetSpellLocation" OnPress="SpellLocation='Parent.ProfitUI_Cures.' ## (Parent.Parent.Parent._HUD.ProfitUI_SubclassDetector.Subclass) ## '.' ## (Parent.CureName) ##
'Cure' Parent.Configure.OnPress='Parent.Cure=' ## (SpellLocation) Parent.Configure.Press=true" />
This means in the ProfitUI_Cures.txt i needed to add the word 'Cure'.
Example:
<Data Name="Inquisitor" TraumaCure="Cure" ArcaneCure="Cure" NoxiousCure="Cure" ElementalCure="Cure" CurseCure="Cure Curse" AncestralBalm
Cure="NONE"/>
<Data Name="Monk" TraumaCure="NONE" ArcaneCure="NONE" NoxiousCure="NONE" ElementalCure="NONE" CurseCure="NONE" AncestralBalm
Cure="NONE"/>
<Data Name="Mystic" TraumaCure="Cure" ArcaneCure="Cure" NoxiousCure="Cure" ElementalCure="Cure" CurseCure="Cure Curse" AncestralBalm
Cure="Ancestral Balm"/>
<Data Name="Necromancer" TraumaCure="NONE" ArcaneCure="Cure Arcane" NoxiousCure="NONE" ElementalCure="NONE" CurseCure="NONE" AncestralBalm
Cure="NONE"/>
Now it works correctly