small fixes
moves XMLTag in a separate translation unit
properly non-unique elems
fixes a bug with node quering