diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-08-14 06:29:13 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-08-14 06:29:13 (GMT) |
commit | 0c831b8cf84c72ee8673d1d38f4e93e350dddd5f (patch) | |
tree | 84fc3c89d73342ec70d77b2bdf99066f987536b8 /doc/src/snippets/code/src_xml_dom_qdom.cpp | |
parent | b98b7d305ffebb700e471bd64a7dee59d947e056 (diff) | |
parent | 4b1b93f3f97de70af316052bc38048f52631b9e4 (diff) | |
download | Qt-0c831b8cf84c72ee8673d1d38f4e93e350dddd5f.zip Qt-0c831b8cf84c72ee8673d1d38f4e93e350dddd5f.tar.gz Qt-0c831b8cf84c72ee8673d1d38f4e93e350dddd5f.tar.bz2 |
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
Diffstat (limited to 'doc/src/snippets/code/src_xml_dom_qdom.cpp')
-rw-r--r-- | doc/src/snippets/code/src_xml_dom_qdom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/code/src_xml_dom_qdom.cpp b/doc/src/snippets/code/src_xml_dom_qdom.cpp index d07d6d2..622295d 100644 --- a/doc/src/snippets/code/src_xml_dom_qdom.cpp +++ b/doc/src/snippets/code/src_xml_dom_qdom.cpp @@ -68,7 +68,7 @@ QDomElement element4 = document.createElement("MyElement"); //! [7] -<link href="http://qtsoftware.com" color="red" /> +<link href="http://qt.nokia.com" color="red" /> //! [7] @@ -76,10 +76,10 @@ QDomElement element4 = document.createElement("MyElement"); QDomElement e = //... //... QDomAttr a = e.attributeNode("href"); -cout << a.value() << endl; // prints "http://qtsoftware.com" -a.setValue("http://doc.trolltech.com"); // change the node's attribute +cout << a.value() << endl; // prints "http://qt.nokia.com" +a.setValue("http://qt.nokia.com/doc"); // change the node's attribute QDomAttr a2 = e.attributeNode("href"); -cout << a2.value() << endl; // prints "http://doc.trolltech.com" +cout << a2.value() << endl; // prints "http://qt.nokia.com/doc" //! [8] |