QXmlPutGet is a library for convenient and intuitive writing and reading of XML. This is a quick and more technical introduction to QXmlPutGet. For a practically oriented tutorial, visit
Both classes work on their current element. In QXmlPut this is the element that was previously created (e.g. with QXmlPut::putString), in QXmlGet this is the element which was previously navigated to (e.g. with QXmlGet::find). Due to this concept, writing and especially reading may not always happen in one single call, but multiple calls, that base on the internal state (the current element) of the QXmlPut/QXmlGet instance.
Both classes have functions that allow direct jumps inside the underlying QDomDocument (QXmlGet::goTo, QXmlPut::goTo, QXmlGet::element, QXmlPut::element). Use these functions only when necessary, as it's not the way normal linear navigation should be carried out.
In QXmlPut, the current element (which was created with QXmlPut::putString("tagName", "string content"), for example), can further be modified by setting attributes, e.g. with QXmlPut::setAttributeString.