DocumentMetadata_getName
DocumentMetadata_getName <metadata handle>
DocumentMetadata
To get the name of metadata for a document being parsed
metadata handle
àMetadata handle
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;
}
}