Skip to main content

Validate XML

Check that XML is well written and, if you give them, that it follows one or more XSD schemas or its DTD; gives the result instead of failing.

Command in the XML toolkit · id ooa.xml/validate · 7 inputs, 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Xsd pathFileNoXSD schema file; without it only well-formedness is checked.
XMLStringNoXML text (or use path).
PathFileNoXML file (or use xml).
More schemasListNoFurther XSD files the document must follow together with xsd_path, e.g. one per namespace.
Check against the DTDBooleanNofalseCheck the document against its DTD: the one inside its DOCTYPE, or the file in dtd_path (a DTD the DOCTYPE points to elsewhere is never downloaded).
Dtd pathFileNoDTD file to check against; used for the DOCTYPE's outside DTD, or added when the document has no DOCTYPE.
SessionStringNoCheck the XML of this session (Start session).

Outputs​

OutputTypeWhat it is
validBooleanTrue when the document is valid.
errorsListValidation errors with line numbers.