Hi,
It seems that the AC adapter port has a loose connection or bent/broken pins. Check for any damage on the AC adapter port.
Some Dell XPS models are shipped with a DC-IN connector which connects to the system board with a cable.
If your laptop has the DC-IN connector, replacing it may help.
If the AC adapter port is on the system board, you may have to replace the system board.
Please share the system's service tag via e-mail and I will help you in the best possible way. Go to My Profile to send an e-mail.
Hope this helps.
Please revert for any further queries.
Thanks and Regards,
Manpreet C
My laptop charger's transformer has a green light on it that indicates that it's plugged in and working.
When I plug it into the wall, the light goes on as expected. As soon
as I plug it into the laptop, the light immediately turns off and my
laptop doesn't get any charge.
After that, the charger's light doesn't turn green again, even though
it is still plugged into an outlet. I need to unplug it from the wall
and wait a few minutes. It's strange - unplugging and immediately
re-plugging it does not bring back the charge; I have to wait.
Is this a charger issue or a laptop issue?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic