public void setAttribute(String key, String value) {
/*		if (!attributes.containsKey(key))
		{
			sortedAttributes.add(key);
		}*/
		if (nodeAttributes == null) {
			nodeAttributes = new Properties();
		}
		nodeAttributes.setProperty(key, value);
	}
public void setAttribute ( String key , String value ) { if ( nodeAttributes == null ) { nodeAttributes = new Properties ( ) ; } nodeAttributes . setProperty ( key , value ) ; }
Sets a name-value pair that appears as attribute in the opening tag

@param key
@param value