Use `item.node = node` here, because we have a typedef for `ol.xml.NodeStackItem` and the compiler might rename 'node'. You will have to do the type cast in the line above.