DWMX has a built-in validator, but you have to run it to find the problems.
If you use DWMX, at the bottom of thedesign/code window, expand the "Results" pane (immediately below "Properties"). Once expanded, you will see several tabs. One of those tabs is labelled "Validation". Click on it...