ApplyWRDSchemaDefinition (open)

Applies XML metadata to this schema. Creates types and dom values.

Syntax

LOADLIB "mod::wrd/lib/imexport.whlib";

RECORD FUNCTION ApplyWRDSchemaDefinition(OBJECT wrdschema, OBJECT metadata)

Parameters

OBJECT wrdschema
OBJECT metadata

Node with xml metadata (or document with xml metadata in documentelement)

Return value

RECORD

Result

RECORD ARRAY errors

Errors that occurred

STRING errors.message

Readable error message

BOOLEAN success

True if no errors occurred during the update (updates may be half-applied)

RECORD ARRAY updates

Updates that occurred

STRING updates.message

Readable update info