summaryrefslogtreecommitdiffstats
path: root/doc/xml-sax-features-walkthrough.doc
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-11-26 15:11:22 +0900
commitb87533f9904c10f24d6b2e8177c00944e3efe15b (patch)
treec1106a381c851b51e86004698457aef1211b77be /doc/xml-sax-features-walkthrough.doc
parent894037c3e68e1573a34183d936171f8cda5085f3 (diff)
downloadtqt-r14.1.x.tar.gz
tqt-r14.1.x.zip
Replace TRUE/FALSE with boolean values true/false - part 4r14.1.x
Manually cherry-picked from commit 4d495175 Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/xml-sax-features-walkthrough.doc')
-rw-r--r--doc/xml-sax-features-walkthrough.doc24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/xml-sax-features-walkthrough.doc b/doc/xml-sax-features-walkthrough.doc
index 7884ef445..7125dbe90 100644
--- a/doc/xml-sax-features-walkthrough.doc
+++ b/doc/xml-sax-features-walkthrough.doc
@@ -106,8 +106,8 @@ Now let's think about presenting the output: As described in the
\link xml.html#sax2Features TQt SAX2 documentation \endlink
there are three valid combinations of \e
http://xml.org/sax/features/namespace-prefixes
-and \e http://xml.org/sax/features/namespaces: TRUE/TRUE, TRUE/FALSE and
-FALSE/TRUE. To show the relevant output side by side of each other
+and \e http://xml.org/sax/features/namespaces: true/true, true/false and
+false/true. To show the relevant output side by side of each other
and mark them with three labels makes up for a grid layout consisting
of three columns (and thus two lines).
@@ -116,9 +116,9 @@ of three columns (and thus two lines).
The most natural way of presenting XML elements is in a tree.
Thus we use a listview. Its name \e nameSpace indicates that this
one will be used to present the combination of \e
-http://xml.org/sax/features/namespaces being TRUE and
+http://xml.org/sax/features/namespaces being true and
\e http://xml.org/sax/features/namespace-prefixes
-being FALSE -- the default configuration of a \l QXmlSimpleReader.
+being false -- the default configuration of a \l QXmlSimpleReader.
Being the first grid entry the \e nameSpace listview will
appear in the upper left corner of the virtual grid.
@@ -157,12 +157,12 @@ Then we ask the \e handler to present the data in the \e namespacePrefix
listview.
\printline namespace-prefixes
-\printline TRUE
+\printline true
Now we modify the behaviour of the \e reader and change
-\e http://xml.org/sax/features/namespace-prefixes from the default FALSE
-to TRUE. The \e http://xml.org/sax/features/namespaces feature has
-still its default setting TRUE.
+\e http://xml.org/sax/features/namespace-prefixes from the default false
+to true. The \e http://xml.org/sax/features/namespaces feature has
+still its default setting true.
\printline reset
@@ -172,14 +172,14 @@ beginning of the document again.
\printline parse
Finally we parse the XML file a second time with the changed reader
-settings (TRUE/TRUE).
+settings (true/true).
\printline prefix
\printuntil parse
Next we prepare and use the upper right listview to show the reader results
with the feature setting \e http://xml.org/sax/features/namespaces
-FALSE and \e http://xml.org/sax/features/namespace-prefixes TRUE.
+false and \e http://xml.org/sax/features/namespace-prefixes true.
\printline namespace label
\printuntil namespace prefix label
@@ -370,11 +370,11 @@ Obviously \e attribute is a child of
the current \e element.
-\printline TRUE
+\printline true
\printline }
To prevent the reader from throwing an error we have to
-return TRUE when we successfully dealt with an
+return true when we successfully dealt with an
element's start tag.
\printline endElement