The validation is performed in three independent steps:
- NewsML-G2 validation based on the XSD provided by IPTC.
- XHTML validation of the inlineXML embedded XHTML document withing the NewsML-G2 contentSet, using XML schemas for XHTML1 and XHTML5
- Validation of microdata, embedded within the XHTML document, using Google Structured Data Testing Tool https://developers.google.com/structured-data/testing-tool/
- Validation of NITF embedded into inlineXML elements
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.
You can choose between a couple of services to validate HTML5 and Microdata. Please remember to add the right doctype definition to your XHTML document in order to make the validator recognize this is a polyglot HTML5 document ()
###HTML5 validation http://validator.w3.org/, The W3C Markup Validation Service https://validator.nu, validator.nu
###Microdata validation https://developers.google.com/structured-data/testing-tool, Google Testing Tool, https://webmaster.yandex.com/microtest.xml, Yandex Structured Data Validator http://www.bing.com/toolbox/markup-validator, Bing Markup Validator
##Want to Contribute? Feel free to checkout the project, improve it and send me a pull request.
##Installation
Dependencies: HTTP server running PHP
run bower install
from the root directory
run git submodule init
+ git submodule update
to install the XHTML validation XSD's