my $registerName = $register->findvalue("./\@name");
my $registerId = $register->findvalue("./\@id");
my $registerSize = $register->findvalue("./\@size");
- my $registerDescr = prepare_text($spectree->findvalue("/MAPS/register[\@name='""']description") || "n/a");
+ my $registerDescr = prepare_text($spectree->findvalue("/MAPS/register[\@name='".$registerName."']/description") || "n/a");
my $flistid = $xmlfile."//".$registerName;
my $fieldName = $field->findvalue("./\@name");
my $readOnlyFlag = 0;
my $fieldValue = $field->findvalue("./\@value");
- my $fieldDescr = prepare_text($field->findvalue("./description") || "n/a");
+ my $fieldDescr = prepare_text($spectree->findvalue("/MAPS/register[\@name='".$registerName."']/field[\@name='".$fieldName."']/description") || "n/a");
my $fieldId = $xmlfile."//".$registerName."/".$fieldName;
if ($fieldValue eq "") {
$fieldValue = $field->findvalue("./\@defaultValue");