if (tagging.equals("none"))
if(tagging == null || tagging.equals("none"))
	public void setProperties(Map properties) {		if (properties == null)			return;		Map.Entry entry;		for (Iterator i = properties.entrySet().iterator(); i.hasNext();) {			entry = (Map.Entry) i.next();			if (entry.getKey().equals(PRETTY_PRINT))				indent = entry.getValue().equals("true");			else if (entry.getKey().equals(ENCODING))				encoding = (String) entry.getValue();			else if (entry.getKey().equals(EXPAND_XINCLUDES))				processXInclude = entry.getValue().equals("true");			else if (entry.getKey().equals(HIGHLIGHT_MATCHES)) {				String tagging = (String) entry.getValue();				if (tagging.equals("none"))					highlightMatches = TAG_NONE;				else if (tagging.equals("both"))					highlightMatches = TAG_BOTH;				else if (tagging.equals("elements"))					highlightMatches = TAG_ELEMENT_MATCHES;				else if (tagging.equals("attributes"))					highlightMatches = TAG_ATTRIBUTE_MATCHES;			} else if (entry.getKey().equals(GENERATE_DOC_EVENTS))				generateDocEvents = entry.getValue().equals("true");		}	}