var iExpect = [] var myAttributes = {} var ENTITIES = {} // generates xml like test0="&control;" var entitiesToTest = { // 'ENTITY_NAME': IS_VALID || [invalidCharPos, invalidChar], 'control0': true, // This is a vanilla control. // entityStart '_uscore': true, '#hash': true, ':colon': true, '-bad': [0, '-'], '.bad': [0, '.'], // general entity 'u_score': true, 'd-ash': true, 'd.ot': true, 'all:_#-.': true } var xmlStart = '