There are a couple of problems.
First, 'Farming profiles' only defend themselves if attacked, they won't actively initiate combat against mobs. If you want the latter, then you want a 'grinding profile'. You can farm with either a Farming or Grinding-style profile, but no sense wasting times fighting mobs if you just want to gather things.
Take a look at the
Wiki for Profile Writing. In it, you will find a
Starter Farming Profile and a
Starter Grinding Profile. You probably want the former, which will just defend itself if attacked. However, the 'defend itself' is influenced by the "Ground Mount Farming" mode setting in the bot. If this is enabled, it will ignore mobs that pose you no threat (greens and greys) on the hope that they will break off the chase before you reach your next harvest. If this is disabled, you will stop and fight them to defend yourself.
If you choose to go with the Grinding Starter Profile to farm, then you will need the
<GrindArea> and
<Factions> elements, that FPSware has pointed out are missing. However, if it were me, I'd go with the Farming Starter Profile instead.
Especially if this is your first profile, I'd read through that whole Profile Writer's Wiki. There are a lot of subtle points to Profile writing that you'll miss if not. Superficially, they look easy to slam together, but to get them right involves some experience.
Hope this helps & cheers,
CJ