It's pretty much out-of-the-box. I remember Emacs validating XML automatically as well, and knowing the schemas somehow.
Regular Emacs or Doom-Emacs?
I dont recall getting schema-validation... ever.
I remember spending some time writing some kind of wrapper for converters from dtd and w3c XML schema to relax Ng compact. Then nxml handles the rest.
If I recall correctly it probably just litters my nxml schema dir with whatever I happen to edit.
Clearly you are not talking about the OOB experience here?
What customizations have you made? Something you can share?
Here’s me hoping I can move my MSBuild work to Emacs ;)