I have recently purchased a 3DS XL and it seems to have a non common issue.
If you plug the charger in you it will turn on, take the charger off it turns off.
I have purchased a new battery from eBay to see if the battery is the issue, but now i am thinking it could potentially be something...