fix bad merge of xml validation - use NAN to make strings