@@ -105,7 +105,7 @@ class CSimpleSuperFileArray : public CInterface, implements ISimpleSuperFileEnqu
105
105
{
106
106
if (subFiles.isItem (num))
107
107
{
108
- name.append (subFiles.item (num).queryProp (" @val " ));
108
+ name.append (subFiles.item (num).queryProp (" @value " ));
109
109
return true ;
110
110
}
111
111
else
@@ -115,7 +115,7 @@ class CSimpleSuperFileArray : public CInterface, implements ISimpleSuperFileEnqu
115
115
{
116
116
ForEachItemIn (idx, subFiles)
117
117
{
118
- if (stricmp (subFiles.item (idx).queryProp (" @val " ), subname))
118
+ if (stricmp (subFiles.item (idx).queryProp (" @value " ), subname))
119
119
return idx;
120
120
}
121
121
return NotFound;
@@ -124,7 +124,7 @@ class CSimpleSuperFileArray : public CInterface, implements ISimpleSuperFileEnqu
124
124
{
125
125
ForEachItemIn (idx, subFiles)
126
126
{
127
- contents.append (subFiles.item (idx).queryProp (" @val " ));
127
+ contents.append (subFiles.item (idx).queryProp (" @value " ));
128
128
}
129
129
return subFiles.length ();
130
130
}
@@ -238,14 +238,16 @@ class CRoxiePackage : extends CInterface, implements IRoxiePackage
238
238
{
239
239
IPropertyTree &env = envIterator->query ();
240
240
const char *id = env.queryProp (" @id" );
241
- const char *val = env.queryProp (" @val" );
241
+ const char *val = env.queryProp (" @value" );
242
+ if (!val)
243
+ val = env.queryProp (" @val" ); // Historically we used val here - not sure why... other parts of package file used value
242
244
if (id && val)
243
245
mergedEnvironment->setProp (id, val);
244
246
else
245
247
{
246
248
StringBuffer s;
247
249
toXML (&env, s);
248
- throw MakeStringException (0 , " PACKAGE_ERROR: Environment element missing id or val : %s" , s.str ());
250
+ throw MakeStringException (0 , " PACKAGE_ERROR: Environment element missing id or value : %s" , s.str ());
249
251
}
250
252
}
251
253
Owned<IAttributeIterator> attrs = node->getAttributes ();
0 commit comments