fix failed parsing of attributes with spaces in them in xml viewer