I'm with mcma111, it's probably the switch assembly. There are several interlocks on the XRL that will keep the starter button from working but the fact that the headlight is out also, in my opinion, points to the switch assy.
XR650R Plated Supermoto
XR628R Plated and highly modified
CR500R Still rips after all these beers
RZ350L Kenny Roberts Special
KTM300EXC Plated & So cool