Step 1: Check by reaction with water
$\text{CO}_2$ gives carbonic acid, $\text{P}_2\text{O}_5$ gives phosphoric acid and $\text{Cl}_2\text{O}_7$ gives perchloric acid.
Step 2: Barium
$\text{BaO}+\text{H}_2\text{O}\rightarrow\text{Ba(OH)}_2$, a strong base.
Step 3: Result
Only barium forms a basic oxide, so it is the answer.
Final Answer:
Barium is the element that does not form an acidic oxide.
\[ \boxed{\text{(D) }\text{barium}} \]