Change QDataStream to XDataStream for parsing data streams, ensuring compatibility with the new data format.