s#[ ]*$##g
s# xmlns=""##g
/<dimensions>NA<\/dimensions>/d
s#\(units notes=.*\)>NA</units>#\1/>#g

