private XmlElement waitForNextElement(XmlElement element) {
		checkForException();

		while (element == null) {
			try {
				element = queue.poll(10, TimeUnit.SECONDS);
			}
			catch (InterruptedException e) {
				// try again, checking exit conditions.
			}
			checkForException();
		}

		return element;
	}
Returns true if the parser has more elements to read.

@return true if the parser has more elements to read
Ghidra/Framework/Generic/src/main/java/ghidra/xml/ThreadedXmlPullParserImpl.java