summaryrefslogtreecommitdiff
path: root/examples/cxx/tree/mixed/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-05-31 08:51:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-05-31 08:51:12 +0200
commit0d4790ae071990d18883c0fb799b938ff53b5c62 (patch)
tree4dc70e86d3461c406ebb33fa2df8a375b1359a4d /examples/cxx/tree/mixed/driver.cxx
parent4515aa99a3397e97f1565117ffd5b8c4741115e0 (diff)
Require explicit keep_dom flag to maintain association in copies
Diffstat (limited to 'examples/cxx/tree/mixed/driver.cxx')
-rw-r--r--examples/cxx/tree/mixed/driver.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/cxx/tree/mixed/driver.cxx b/examples/cxx/tree/mixed/driver.cxx
index d905421..3347d7f 100644
--- a/examples/cxx/tree/mixed/driver.cxx
+++ b/examples/cxx/tree/mixed/driver.cxx
@@ -47,10 +47,12 @@ main (int argc, char* argv[])
xml_schema::flags::keep_dom |
xml_schema::flags::dont_initialize));
- // Note that DOM association is preserved in copies but only if they
- // are "complete", i.e., made from the root of the tree.
+ // The DOM association can be recreated in a copy (the underlying
+ // DOM document is cloned) if explicitly requested with the keep_dom
+ // flag and only if this copy is "complete", i.e., made from the root
+ // of the tree.
//
- text copy (*t);
+ text copy (*t, xml_schema::flags::keep_dom);
// Print text.
//