Handles notification when an XMLEvent is encountered on the
stream which contains an attribute meets the criteria with which
the observer was installed in the XPathStreamFactory.
Constructs a new output format with the proper method,
document type identifiers and media type for the specified
document, and with the specified encoding.