What is the best way to get items off wild pokemon? (in Diamond)
Have a pokemon use the ability Frisk to find out if the pokemon has an item, then use trachy's answer.
Use the move Covet (or Thief, although Thief is not as reliable.)