Consider two nodes equal if their name attrs are equal