You didn't set a 'known good' version checkpoint before you installed DX9? Did you read the installation documentation where it says specifically that there is no uninstall procedure?
For older versions of Windows, there's a program called DirectX Buster that will blow away a DirectX install, but it doesn't work for WinXP.
I'm afraid that your answer is likely to be the ugly phrase 'reinstall Windows'.