PDA

View Full Version : 4.2: complains when assigning numerical value to XML attribute instead of string


falcor781
02-11-2009, 10:05 AM
Is there a way to prevent these warnings or enforce your own xml attributes to be numeric?

This makes me itch:
var query2 = "/step/objects/objectstate[@name='"+classroot.objectref+"']/parameters/parameter[@name='"+paramName+"']";
var param = datapath.xpathQuery(query2);
// --- Append empty string so it doesnt complain
param.setAttr('value', ''+paramVal);