Validating with Relax NG for RuleML 1.02

From RuleML Wiki
Jump to: navigation, search

Validator.nu is an easy-to-use online tool for validating an XML instance against a Relax NG schema. A basic procedure for using this tool is as follows:

  1. Open the Validator.nu webpage in your browser.
  2. Choose how you want to enter the instance:
    • Address -- type or paste a URL into the adjacent text field;
    • File Upload -- use the browse dialog to locate the file on your local hard drive or network;
    • Text Field -- type or paste text directly into the text area.
  3. Leave the Encoding field at the default value, unless there is a discrepancy between the server/page setting and the actual content.
  4. Type or paste a URL to the schema you wish to validate against. Only schemas publically available from the Web can be used. For example,
  5. Keep the Preset Field at "None".
  6. Select, in the Parser field, "XML; don't load external entities" if your instance document does not use external entities (the typical case), otherwise select "XML; load external entities"
  7. Skip the rest of the fields for now - these may become useful as you gain familiarity with the tool.
  8. Click Validate.
  9. The result will appear below.

An online demo of validation using the RuleML Relax NG schemas with Validator.nu, including more advanced options, is available at the Demo section of the MYNG Wiki. Other tools that may be used for validation against Relax NG schemas are described in the Tools section of the MYNG Wiki.