This page allows you to validate files against the NeuroML specifications. Examples of valid NeuroML files can be found here.
The current version of the specification is: v1.8.1 (Release notes)