Do a bar the same proportional value as the max xp. Set instance variables for max xp and base xp bar and then each time you level up, increase the bar to the proper size. Theres a hp bar tutorial that could get you started. I dont know if that works but me too I have to do something similar and I was thinking doing it that way.
Hope that works if not let us know.
Cheers