Make the XML parser work const std::shared_ptr<Stream>& after Cody's changes.