summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/src/qtserialization.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/doc/src/qtserialization.qdoc')
-rw-r--r--src/corelib/doc/src/qtserialization.qdoc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/corelib/doc/src/qtserialization.qdoc b/src/corelib/doc/src/qtserialization.qdoc
index dfceed55f2..14ee5e7a9c 100644
--- a/src/corelib/doc/src/qtserialization.qdoc
+++ b/src/corelib/doc/src/qtserialization.qdoc
@@ -22,7 +22,7 @@
and save JSON data. \l {CBOR} {CBOR Support in Qt} is a compact form
of binary data encoding that is a superset of JSON.
\li \l QDataStream provides serialization of binary data to a QIODevice
- \li \l {Qt XML C++ Classes} provide C++ implementations of the \l XML Streaming
+ \li \l {Qt XML C++ Classes} provide C++ implementations of the \l {XML Streaming}
and DOM standards for XML
\li \l CBOR is Qt's implementation for the CBOR serialization format.
\li \l QSettings provides a way of serializing and storing platform independent
@@ -109,13 +109,20 @@
\section1 Advantages of Qt XML C++ Classes
+ Qt provides both DOM classes and stream-based classes to read and write
+ XML content.
+
Qt provides the QDomDocument class that represents the XML document and
two classes for reading and writing the XML through a simple streaming API:
QXmlStreamReader and QXmlStreamWriter.
+ \section2 The DOM XML Classes
+
QDomDocument class represents the entire XML document. It is the root of the
document tree and provides primary access to the document's data.
+ \section2 The Stream-Based XML Classes
+
A stream reader reports an XML document as a stream of tokens. This differs
from SAX as SAX applications provide handlers to receive XML events from the
parser, whereas the QXmlStreamReader drives the loop, pulling tokens from the
@@ -132,7 +139,7 @@
The QXmlStreamWriter is a streaming API that takes care of prefixing namespaces,
when the namespaceUri is specified when writing elements or attributes.
- \section1 Classes that provide serialization
+ \section1 Classes that Provide Serialization
\annotatedlist qtserialization
*/