Salesforce

XMLValidationError (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

XMLValidationError (Magic xpa 3.x)

Returns a list of validation errors based on the last time that the XMLValidate function was executed.

Syntax:

XMLValidationError ()

Parameters:

None

Returns:

Vector of Unicode strings.
Each cell in the vector is one error or warning as reported by the low-level parser (XERCES), in the following format:{ERROR|WARNING}:<parser-text>.

Note:

During runtime, the function refers only to the last XMLValidate call. Each XMLValidate call will clear the results of the former XMLValidate call, before execution.

Exceptions:

This function is not supported for Rich Client tasks.

Example:

Block if not ( XMLValidate (File2Blb(‘my.xml’),’http://srvr/my.xsd’))
Update ErrorList XMLValidationError()
Update Count VecSize (ErrorList)

Block While 1 .. Count
Update ErrorList VecGet (ErrorList, loop-counter)
Block End

Block Else
Update Warnings XMLValidationError()
Update Count VecSize (Warnings)

Block While 1 .. Count
Update Warning VecGet (Warnings, loop-counter)
Block End

Block End

See also:

How Do I Retrieve Validation Errors of an XML Document?

The Online and Rich Client Samples projects (program XM11 and RXM11)

Reference
Attachment 
Attachment