public void learn(String learn) {
		char c;
		String name = "";
		for (int i = 0; i < learn.length(); i++) {
			c = learn.charAt(i);
			switch (c) {
			case '(':
				if (name.length() > 0)
					startElement(name);
				name = "";
				break;
			case ')':
				if (name.length() > 0)
					startElement(name);
				name = "";
				oState = oState.getParent();
				break;
			case '\n':
			case '\r':
			case '\t':
			case ' ':
				break;
			default:
				name += c;
				break;
			}
		}
	}