Validator for NewsML-G2 + XHTML + Microdata + NITF
PHP HTML CSS JavaScript ApacheConf
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
doc
examples
lib
.gitignore
.gitmodules
.htaccess
LICENSE
README.md
bower.json
index.php
validator.php
xml.xsd
xsdviewer.php

README.md

4-Step NewsML-G2 + XHTML5 + Microdata + NITF Validator

How it works

The validation is performed in three independent steps:

  1. NewsML-G2 validation based on the XSD provided by IPTC.
  2. XHTML validation of the inlineXML embedded XHTML document withing the NewsML-G2 contentSet, using XML schemas for XHTML1 and XHTML5
  3. Validation of microdata, embedded within the XHTML document, using Google Structured Data Testing Tool https://developers.google.com/structured-data/testing-tool/
  4. Validation of NITF embedded into inlineXML elements

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.

Alternative validation services

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