smartxml: removing node attributes by setting undefined as their value