![]() |
OTX Reference
|
|
Validates an XML file against the XML schema file specified within the XML document. More...

Public Attributes | |
| StringVariable | errorMessages |
| Cardinality [0..1] Error message if errors occurred during the validation. More... | |
| EncodingTerm | fallbackEncoding |
| Cardinality [0..1] Optional encoding value of the XML document (Default = "UTF-8"), if no encoding is described in the XML prolog or byte order mark (BOM). If the encoding is defined by the prolog or BOM, the <fallbackEncoding> shall be ignored. If an invalid encoding (BIN, OCT, HEX) is specified, an XmlFormatException shall be thrown. More... | |
| BooleanVariable | isValid |
| Cardinality [1] Variable indicating whether the validation has been successfully performed or not. In case no schema is available false will returned, with the error message stating that there is no XML schema available. More... | |
| StringTerm | path |
| Cardinality [1] The URI path to the file. The path shall be defined by a URI (see ISO 13209-2, Annex OTX home and URI recommendation). More... | |
Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation | |
| OtxLink | validFor |
| Cardinality [0..1] Validity of ActionRealisation. More... | |
Validates an XML file against the XML schema file specified within the XML document.
The ValidateXml activity validates an XML file against the XML schema file specified within the XML document. All relative paths to schemas (xsd files) inside the XML document should be relative path locations where the XML document is the base location.
| Core.Exceptions.InvalidReferenceException | If the file given by the path element or the schema specified in XML document is not available or not accessible. |
| Exceptions.XmlFormatException | If an invalid encoding (BIN, OCT, HEX) is specified, or if one of the referenced schema files is not a valid XML schema. |
| StringVariable OpenTestSystem.Otx.Extensions.XML.Actions.ValidateXml.errorMessages |
Cardinality [0..1]
Error message if errors occurred during the validation.
| EncodingTerm OpenTestSystem.Otx.Extensions.XML.Actions.ValidateXml.fallbackEncoding |
Cardinality [0..1]
Optional encoding value of the XML document (Default = "UTF-8"), if no encoding is described in the XML prolog or byte order mark (BOM). If the encoding is defined by the prolog or BOM, the <fallbackEncoding> shall be ignored. If an invalid encoding (BIN, OCT, HEX) is specified, an XmlFormatException shall be thrown.
| BooleanVariable OpenTestSystem.Otx.Extensions.XML.Actions.ValidateXml.isValid |
Cardinality [1]
Variable indicating whether the validation has been successfully performed or not. In case no schema is available false will returned, with the error message stating that there is no XML schema available.
| StringTerm OpenTestSystem.Otx.Extensions.XML.Actions.ValidateXml.path |
Cardinality [1]
The URI path to the file. The path shall be defined by a URI (see ISO 13209-2, Annex OTX home and URI recommendation).