Before anyone runs out to get a new battery,
My laptop occasionally has the same problem. I know it isn't the power cords, or a busted battery.
So I took out the battery out of the machine for about a half a minute then put it back in and it was charging again.
I heard Dells have a tendency to...