summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-04-15 10:27:05 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-04-15 11:18:39 (GMT)
commitf56623c144d8a00203b0ebd37aeebf3aaad92f11 (patch)
tree0ee0693ee4776214ab9fbd0880c037d2b273d913
parent5fed02a83a722ffa8c4ca2a50e4635ea8cc6e392 (diff)
downloadQt-f56623c144d8a00203b0ebd37aeebf3aaad92f11.zip
Qt-f56623c144d8a00203b0ebd37aeebf3aaad92f11.tar.gz
Qt-f56623c144d8a00203b0ebd37aeebf3aaad92f11.tar.bz2
Added remark about XML input
Stated a remark about the need to use well-formed XML as input to the example. Rev-by: Geir Vattekar (cherry picked from commit e0706ca2fbce063c263bad9a1eee24f057f170bd)
-rw-r--r--doc/src/examples/qxmlstreambookmarks.qdoc7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/examples/qxmlstreambookmarks.qdoc b/doc/src/examples/qxmlstreambookmarks.qdoc
index 55fb7b7..4bdc3b5 100644
--- a/doc/src/examples/qxmlstreambookmarks.qdoc
+++ b/doc/src/examples/qxmlstreambookmarks.qdoc
@@ -103,8 +103,11 @@
The \c read() function accepts a QIODevice and sets it using
\l{QXmlStreamReader::setDevice()}{setDevice()}. The actual process
- of reading only takes place in event the file is a valid XBEL 1.0
- file. Otherwise, the \l{QXmlStreamReader::raiseError()}
+ of reading only takes place if the file is a valid XBEL 1.0 file.
+ Note that the XML input needs to be well-formed to be accepted by
+ QXmlStreamReader.
+
+ Otherwise, the \l{QXmlStreamReader::raiseError()}
{raiseError()} function is used to display an error message.
\snippet examples/xml/streambookmarks/xbelreader.cpp 1