NOTE: | You can only use the National Highway Traffic Safety Administration (NHTSA) Early Warning Reporting (EWR) XML Validator with Microsoft® Internet Explorer Version 6.0 or greater. |
The NHTSA EWR XML Validator application enables you to validate your XML documents against the specified XML schema before you submit your EWR data to NHTSA. The following topics are discussed:
Follow the Download instructions that are available on NHTSA's web site to download the XML schemas to use for validation.
NOTE: | Do not change the name of a schema after you download it. If you change the name of the XML schema, the NHTSA EWR XML Validator will not work. |
Once you have downloaded the appropriate XML schemas and the NHTSA EWR XML Validator, use the following procedure to validate your XML data files:
NOTE: | When you select an XML schema file, make sure that it has a valid file extension. XML schema files have the file extension .xsd. If you select a file with an invalid file extension, an error message appears. |
NOTE: | When you select an XML data file, make sure that it has a valid file extension. XML data files have the file extension .xml. If you select a file with an invalid file extension, an error message appears. |
If you selected the incorrect XML schema file for the data file that you want to validate, (for example, you selected the LightVehiclesDI.xsd file for use in validating the LightVehicles.xml data file), the following message will appear in the Reason field on the Validator:
Validate failed because the root element had no associated DTD/schema
If you selected the wrong XML schema or data file, click Cancel to return to the NHTSA EWR XML Validator. Follow the previous steps to start the validation process over.
Field Name | Description |
---|---|
XML Schema | Displays the directory on your local machine where the XML schema is located. |
XML Document | Displays the directory on your local machine where the XML file is located. |
Status | Displays the status of the file. If the file contains invalid data, the word "Invalid" appears in this field. If the data in the file is valid, the word "Valid" appears in this field. |
Reason | Displays the reason why the file is invalid. This field also displays the field name containing the invalid data value. |
Source Line | Displays the line number where the invalid data value is located in the XML file. |
Source Value | Displays the invalid data value. |
NOTE: | If the file passes the validation process, the Reason, Source Line, and Source Value fields do not appear in the NHTSA EWR XML Validator dialog box. |
The screen displays one error message at a time. If the data file contains more than one error, the NHTSA EWR XML Validator will not display the next error until you correct the first error and re-validate the file. For more information about this process, see Correcting Invalid Data.
If the data in the file is valid, a screen similar to the following appears:
End of File