[build] require linux for DTD validation

This change removes the use of DTD validation (requiring libxml2) for
non-linux builds.

Test: CQ
Change-Id: I37794f8d28fb470cf0715d00bf934bcb42943b4c
3 files changed