DocumentMetadata_getValue

Get the value of the metadata for a document being parsed.

Syntax

DocumentMetadata_getValue <metadata handle>

Type/Class

DocumentMetadata

Description

To get the value of metadata for a document being parsed.
metadata handle
Metadata handle

Examples

set allmd [ParsedDocument_getAllMetadata $doc];
set size [$allmd size];
for {set idx 0} {$idx < $size} {incr idx} {
set md [$allmd at $idx];
set mdname [DocumentMetadata_getName $md]
 set mdval [DocumentMetadata_getValue $md]
 set st [ContentInterface_SetMetadata $contentInterface $mdname $mdval]; 
 if {[$st GetStatus]} {
::hwe::tkLM::PopdownWorkingWindow;
OnCancelContentDialog
delete_ParsedDocument $doc
puts "failed to set metadata: '$mdname'"
return 1; 
 }
 }