public short acceptNode(Node n) {
				if (n.getNodeType() == Node.TEXT_NODE) {
					// Use trim() to strip off leading and trailing space.
					// If nothing is left, then reject the node
					if (((Text) n).getData().trim().length() == 0)
						return NodeFilter.FILTER_REJECT;
				}
				return NodeFilter.FILTER_ACCEPT;
			}