summaryrefslogtreecommitdiff
path: root/docs/samples/traverse_iter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'docs/samples/traverse_iter.cpp')
-rw-r--r--docs/samples/traverse_iter.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/docs/samples/traverse_iter.cpp b/docs/samples/traverse_iter.cpp
index 935540f..90e0dc6 100644
--- a/docs/samples/traverse_iter.cpp
+++ b/docs/samples/traverse_iter.cpp
@@ -1,27 +1,27 @@
-#include "pugixml.hpp"
-
-#include <iostream>
-
-int main()
-{
- pugi::xml_document doc;
- if (!doc.load_file("xgconsole.xml")) return -1;
-
- pugi::xml_node tools = doc.child("Profile").child("Tools");
-
- //[code_traverse_iter
- for (pugi::xml_node_iterator it = tools.begin(); it != tools.end(); ++it)
- {
- std::cout << "Tool:";
-
- for (pugi::xml_attribute_iterator ait = it->attributes_begin(); ait != it->attributes_end(); ++ait)
- {
- std::cout << " " << ait->name() << "=" << ait->value();
- }
-
- std::cout << std::endl;
- }
- //]
-}
-
-// vim:et
+#include "pugixml.hpp"
+
+#include <iostream>
+
+int main()
+{
+ pugi::xml_document doc;
+ if (!doc.load_file("xgconsole.xml")) return -1;
+
+ pugi::xml_node tools = doc.child("Profile").child("Tools");
+
+ //[code_traverse_iter
+ for (pugi::xml_node_iterator it = tools.begin(); it != tools.end(); ++it)
+ {
+ std::cout << "Tool:";
+
+ for (pugi::xml_attribute_iterator ait = it->attributes_begin(); ait != it->attributes_end(); ++ait)
+ {
+ std::cout << " " << ait->name() << "=" << ait->value();
+ }
+
+ std::cout << std::endl;
+ }
+ //]
+}
+
+// vim:et