CWRC XML Validator API

Conditions:

Synopsis:

POST

Submit an HTTP POST request with following variables:
sch: URL to schema
type: Schema Type
content: XML content to be validated

GET

[Base URL]/validate.html?sch=[Schema URL]&type=[Schema type]&doc=[Document URL]

Output:

<validation-result>
   <status>pass|fail</status>
   <error>
      <line>integer</line>
      <column>integer</column>
      <message>string</message>
   </error>
   <warning>
      <line>integer</line>
      <column>integer</column>
      <message>string</message>
   </warning>
   ...
</validation-result>
Note that column number specifies end position of element tag containing an error, not the exact position of the error.
For example in a case of an incorrect attribute, the column number tells us where the end of the element tag which contains the attribute, not the position of the attribute.

Try It:

POST

Schema URL:
Schema Type:
Document Content:

GET

Valid Documents with Orlando Tight Schemas:

Schemahttp://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng
Documenthttp://dev.onlineresearchcanada.ca/orlando-bio-tight/elinor_glyn-bio.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng&type=RNG_XML&doc=http://dev.onlineresearchcanada.ca/orlando-bio-tight/elinor_glyn-bio.xml
Schemahttp://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng
Documenthttp://dev.onlineresearchcanada.ca/orlando-bio-tight/gladys_henrietta_schutze-bio.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng&type=RNG_XML&doc=http://dev.onlineresearchcanada.ca/orlando-bio-tight/gladys_henrietta_schutze-bio.xml
Schemahttp://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng
Documenthttp://dev.onlineresearchcanada.ca/orlando-bio-tight/rosita_forbes-bio.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-bio-tight/schemas/biography-test_10-07-16-CAPS.rng&type=RNG_XML&doc=http://dev.onlineresearchcanada.ca/orlando-bio-tight/rosita_forbes-bio.xml

Valid Documents with Orlando Looser Schemas:

Schemahttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc
Documenthttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/margaret_laurence_entry.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc&type=RNG_COMP&doc=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/margaret_laurence_entry.xml

Invalid Documents with Orlando Looser Schemas:

Schemahttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc
Documenthttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/lady_mary_montagu_entry.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc&type=RNG_COMP&doc=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/lady_mary_montagu_entry.xml
Schemahttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc
Documenthttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/lady_morgan_sydney_owenson_entry.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc&type=RNG_COMP&doc=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/lady_morgan_sydney_owenson_entry.xml
Schemahttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc
Documenthttp://dev.onlineresearchcanada.ca/orlando-looser-schemas/l_s_bevington_entry.xml
Testvalidate.html?sch=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/schemas/orlando_bio_and_writing.rnc&type=RNG_COMP&doc=http://dev.onlineresearchcanada.ca/orlando-looser-schemas/l_s_bevington_entry.xml