{{error.markup}}
"The NewsML-G2 standard provides state-of-the-art XML format metadata to combine rich functionality, ease of use, compactness and compatibility with the Semantic Web" [IPTC]
How it works: The validation is performed in four independent steps:
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
header
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
external services.
Partial validation can be performed by adding the "standard" to the service URL parameter with a list comma
separated options
"NewsML", "HTML", "microdata", "NITF". Example:
POST http://newsmlvalidator-url/?standard=NewsML,HTML
Alternative validation services: You can choose between a couple of services to validate HTML5 and Microdata.
Want to Contribute? Feel free to checkout the project from GitHub, improve it and send me a pull request.
Disclaimer:
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.