@Override
	public int up() throws ParsingException
	{
		// In case stepUp is called too many times
		if (!parseStack.isEmpty())
		{
			// Restore the last element (i.e. the parent of the current element), then tell the parser that it should
			// parse the siblings of the parent next time.
			currentElement = parseStack.pop();
			--targetDepth;

			canStepDown = false;
		}
		return parseStack.size();
	}