diff options
Diffstat (limited to 'src/corelib/doc/src/qtserialization.qdoc')
-rw-r--r-- | src/corelib/doc/src/qtserialization.qdoc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/doc/src/qtserialization.qdoc b/src/corelib/doc/src/qtserialization.qdoc index 528a4aa827..14ee5e7a9c 100644 --- a/src/corelib/doc/src/qtserialization.qdoc +++ b/src/corelib/doc/src/qtserialization.qdoc @@ -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 */ |