PCRuntimeLibrary::validateProductModelXML Method [AX 2012]

Validates the XML representation of a product model with the solver and schema validations.

client public static boolean validateProductModelXML(
    str _xmlModel, 
    Set _outErrorMessages, 
   [boolean _throwOnError, 
    str _xmlFocus])

Run On

Client

Parameters

_xmlModel
Type: str
The XML representation of a product model to validate.
_outErrorMessages
Type: Set Class
The string set that receives the error message string if the validation fails.
_throwOnError
Type: boolean
A Boolean value that specifies whether the method should throw an exception if an error is found; optional.
_xmlFocus
Type: str
The focus for the check.

Return Value

Type: boolean
true if for the specified focus the XML representation of the product model is valid and the solver reported no contradiction; otherwise, false.

ExceptionCondition
Error

The _xmlModel and _outErrorMessages parameters are nullNothingnullptrunita null reference (Nothing in Visual Basic) or undefined.

-or-

The _throwOnError parameter is set to true and the validation of the XML fails.

The focus for the check can be a single constraint. The constraint is that all attributes of the component that hold the constraint plus all attributes of the components sub-components are included additionally.

Show: