Skip to main content
Version: 2025.2

XmlValidationConfig

Configuration class for XML validation that can be passed to other methods for validating the xml.

Methods​

schema​

schema(pSchema?): XmlValidationConfig

Sets the XML Schema for XML validation.

Parameters​

pSchema?
any

The XML Schema to be used for validation. This can be either a string or XML-Object (or null). Any other types raise a AditoIllegalArgumentRuntimeException.

Returns​

XmlValidationConfig

The instance of XmlValidationConfig with the updated XML Schema.


xml​

xml(pXml?): XmlValidationConfig

Sets the XML string that should be validated later.

Parameters​

pXml?
any

The XML string that should be set as the XML string to be validated later. This can be either a string or XML-Object (or null). Any other types raise a AditoIllegalArgumentRuntimeException.

Returns​

XmlValidationConfig

The instance of XmlValidationConfig with the updated XML string.