API UnitXP

Returns the current XP of the unit; only works on the player.
 xp = UnitXP(unit)
==Arguments==
:;unit: : UnitId
==Returns==
:;xp: - Returns the current XP points of the unit.
==Details==
* This does not work for hunter pets, use () for that.
==Example==
local xp = UnitXP("player")
local nextXP = UnitXPMax("player")
print(string.format("Your XP is currently at %.1f%%", xp / nextXP * 100))