Larry Shorter, I believe the Beats Pill XL were recalled. Apple has determined that, in rare cases, the battery in the Beats Pill XL Speaker may overheat and pose a fire safety risk. 1st link below will take you to recall info..
The battery, cable/charger or charge port may be faulty damaged. Look in the charge port and blow/pick out(carefully) any dust/debri that may be causing an issue also look in the port for any bent pins and straighten very carefully with a tooth pick. Try a different compatible charger/cord to see if that is the issue. If different compatible charger/cord does not fix and port looks/test good, the battery or connection could be bad, if able to clean battery connections and reconnect/install battery, still not charging battery probably faulty. If port is found to be bad/loose/damaged , this is really not a repair for the inexperienced because the charge port for your device is soldered to the mother board and the heat generated could cause further damage if not very careful. I will post a link to a tear down guide to get you inside the tablet to check the charge port and battery. Good luck. I hope this helped you out, if so let me know by pressing the helpful button.
Beats Pill XL Motherboard Replacement