The Dutch had already won Group E and are also through to Euro 2012.
Kim Kallstrom's free kick put Sweden ahead in the 14th minute after a foul on Johan Elmander. Klaas Jan Huntelaar equalized for the visitors, heading in a cross from Erik Pieters in the 23rd.
The Netherlands took the lead on a Dirk Kuyt header at the start of the second half. But Sebastian Larsson leveled within five minutes from the penalty spot and Ola Toivonen's powerful shot made it 3-2 for Sweden.