private void buildAttributes(Node node, StringBuffer buf) {
		Iterator it = node.getAttributeKeys();
		
		StringBuffer readOnlyAtts = new StringBuffer();
		if (it != null) {
			while (it.hasNext()) {
				String key = (String) it.next();
				Object value = node.getAttribute(key);
				boolean isReadOnly = node.isReadOnly(key);
				if (isReadOnly) {
					readOnlyAtts.append(key).append(" ");
				}
				buf.append(" ").append(key).append("=\"").append(escapeXMLAttribute(value.toString())).append("\"");
			}
		}
		
		if (readOnlyAtts.length() > 0) {
			buf.append(" ").append(ATTRIBUTE_IS_READ_ONLY_ATTS_LIST).append("=\"").append(readOnlyAtts.toString().trim()).append("\"");
		}
	}