generate attribute node even with errors