public isEmpty() as Boolean:
Indicates whether no input information is present.
True when all identifiers and streams are absent.
if input.isEmpty(): print("no XML input")