remove space from xml tag when element has no attribute