Find XOR from given tree satisfying particular condition

Given a tree find the maximal subset XOR of any path from root to leaf. (ie the subset XOR may or may not include all elements from root to leaf)

//