Xbee -> solar panel voltage question

Try this:-

However, you need 8 volts to drive it so you could use two solar cells.

However, if you use a resistor to limit the charging current to say 20mA maximum then the battery will prevent it from going over voltage. But I would also include a zenner to clamp the voltage if the battery was removed.