Issue #920062 by Kristen Pol, eriksen.costa, alveoten, Dave Reid: Fixed XMLWriter::openUri() needs a real path and not a stream wrapper URI. Fixed exceptions should be thrown during generation errors.