CWRC XML Validator API
Conditions:
- Schema should be specified with a publicly accessible URL
- Entity declarations should either be merged within the XML document or should be referred to using publicly accessible URLs
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
GET
Valid Documents with Orlando Tight Schemas:
Valid Documents with Orlando Looser Schemas:
Invalid Documents with Orlando Looser Schemas: