Have a go hero – An XML serializer for player data

Now that you know how to parse XML data, you can create the complementary part—a module that will serialize PlayerInfo structures into XML documents using QXmlStreamWriter. Use methods such as writeStartDocument(), writeStartElement(), writeCharacters(), and writeEndElement() for this. Verify that the documents saved with your code can be parsed with what we implemented together.

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.