// are created in this one call
if (def instanceof IVariableDefinition)
{
// Is the def for an XML type variable?
IVariableDefinition var = (IVariableDefinition)def;
ITypeDefinition varType = var.resolveType(project);
// note that varType might be null if code is bad
boolean isVarXML = (varType==null) ? false : varType.isInstanceOf("XML", project);
if (isVarXML)