private ElementStAX createElement() throws ParsingException
	{
		StartElement start = lastEvent.asStartElement();
		boolean hasChildren = checkForChildren();
		
		if(hasChildren)
			canStepDown = true;
		
		@SuppressWarnings("unchecked")
		ElementStAX element = new ElementStAX(start.getName(), (Iterator<Attribute>) start.getAttributes(),
				hasChildren);
		currentElement = element;

		return currentElement;
	}