private void addText(String txt) {
		org.w3c.dom.Element el=_elemStack.peek();
		txt=txt.replaceAll("\\s+", " ");
		int i,k,n;
		for(i=0,k=0,n=txt.length();i<n;i++) {
			char c=txt.charAt(i);
			switch (c) {
				case '\t': 	if (k!=i) { el.appendChild(_xmlnote.createTextNode(txt.substring(k,i))); }
							el.appendChild(_xmlnote.createElement("tab"));
							k=i+1;
							break;
				case ' ':   if (k!=i) { el.appendChild(_xmlnote.createTextNode(txt.substring(k,i))); }
							el.appendChild(_xmlnote.createElement("space"));
							k=i+1;
							break;
				case '\n':  if (k!=i) { el.appendChild(_xmlnote.createTextNode(txt.substring(k,i))); }
							el.appendChild(_xmlnote.createElement("enter"));
							k=i+1;
							break;
			}
		}
		if (k!=i) {
			el.appendChild(_xmlnote.createTextNode(txt.substring(k,i)));
		}
	}