Checks whether an InputStream is XML and contains any of a set of element names.
The element names can have a namespace (in which case it also has to match) or not
(if the namespace of an element passed to the constructor is the default namespace,
it is treated as "wildcard namespace").