do the following: note that i am seeing voltage regulators on 2009 models failing at an alarming rate....with no rhyme or reason for it:
1-your stator is an alternator. it is fine. do not mess with it.
2-remove battery....fully charge it with a quality charger....NOT a tender....and have it load tested. chances are it is also fine but this eliminates any doubt.
3-install battery...clean both cable ends well....tighten and secure both terminals.
4-go to front left side of bike and look at the factory air intake cooling scoop. look inside same and you will see 2 wiring loom connectors affixed to the inside of same. pinch the tabs together on each one....remove from scoop...seperate each connector and check for corrosion and cleanliness. spray some kano kroil or similar inside....reconnect...reattach to scoop.
5-check your negative battery cable where it affixes to frame grounding point. remove the fastener...clean the cable end and attachment point nicely....reattach.
6-plan on buying a new voltage regulator. yours is headed to VR heaven in short order. your charging system is a SINGLE FIELD system so buy the correct VR for your year. 2008-2010 XB VR's all the same.
report back with results please. it helps other worldwide board members when you do this.