@Override
	public int hashCode()
	{
		int result = 17;
		result = 37 * result + name.hashCode();
		result = 37 * result + attributes.hashCode();
		result = 37 * result + (hasChildren ? 0 : 1);
		
		if(isText())
		{
			result = 37 * result + text.hashCode();
		}
		
		return result;
	}