Writes PRC data to a specified output stream.
Returns eOk if PRC data was written successfully to an .xml file or an appropriate error code in the other case.