92 |
|
|
93 |
|
if (wdb == NULL) /* no geometry section? */ |
94 |
|
return SDEnone; |
95 |
+ |
if ((geom = ezxml_child(wdb, "Name")) != NULL) { |
96 |
+ |
strncpy(sd->matn, ezxml_txt(geom), SDnameLn); |
97 |
+ |
if (sd->matn[SDnameLn-1]) |
98 |
+ |
strcpy(sd->matn+(SDnameLn-4), "..."); |
99 |
+ |
} |
100 |
+ |
if ((geom = ezxml_child(wdb, "Manufacturer")) != NULL) { |
101 |
+ |
strncpy(sd->makr, ezxml_txt(geom), SDnameLn); |
102 |
+ |
if (sd->makr[SDnameLn-1]) |
103 |
+ |
strcpy(sd->makr+(SDnameLn-4), "..."); |
104 |
+ |
} |
105 |
|
sd->dim[0] = sd->dim[1] = sd->dim[2] = .0; |
106 |
|
SDerrorDetail[0] = '\0'; |
107 |
|
if ((geom = ezxml_child(wdb, "Width")) != NULL) |