DocumentMetadata_getName

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

Syntax

DocumentMetadata_getName <metadata handle>

Type/Class

DocumentMetadata

Description

Get the name of the 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; 
} 
}