Validation of NITF embedded into the NewsML-G2 contentSet/inlineXML element is performed using IPTC's validation schemas.
Works with NITF version >= 3.3
Validation API: Validation without using the graphical interface can be done by sending a POST request,
containing the NewsML-G2 document in the POST body to the same URL as this page has.
The API responds with HTTP status code 200 for valid documents, and 400 for invalid ones. The response body
contains parsable JSON or XML serialized info/error messages. To choose the format, add the appropriate accept
to your request:
Accept: application/json Accept: text/xml
Be aware, the performance of validation (apart from NewsML-G2 which is validated internally) is dependent on
Partial validation can be performed by adding the "standard" to the service URL parameter with a list comma
"NewsML", "HTML", "microdata", "NITF". Example:
Alternative validation services: You can choose between a couple of services to validate HTML5 and
Want to Contribute?
Feel free to checkout the project from GitHub,
improve it and send me a pull request.
The purpose of this project is showing how validating
(X)HTML5 + Microdata documents embedded in NewsML-G2 can be done.
Be aware, the implementation is still very minimalistic. There is currently very little error handling.