aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/evolution/passthrough/xml.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-18 11:17:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-18 11:17:51 +0200
commitd80d096ee8743fd6f7382d274272b0b6d7faf9bf (patch)
treed0f0bee1e645cb2b86b6837ac0db8a7d2821e533 /examples/cxx/hybrid/evolution/passthrough/xml.cxx
parent0e4637025fa8d1b4234b0512561d31f0dd023843 (diff)
Support for schema evolution using substitution groups
New examples: hybrid/evolution/ignore and hybrid/evolution/passthrough.
Diffstat (limited to 'examples/cxx/hybrid/evolution/passthrough/xml.cxx')
-rw-r--r--examples/cxx/hybrid/evolution/passthrough/xml.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/evolution/passthrough/xml.cxx b/examples/cxx/hybrid/evolution/passthrough/xml.cxx
new file mode 100644
index 0000000..d60ba81
--- /dev/null
+++ b/examples/cxx/hybrid/evolution/passthrough/xml.cxx
@@ -0,0 +1,19 @@
+// file : examples/cxx/hybrid/evolution/passthrough/xml.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : not copyrighted - public domain
+
+#include "xml.hxx"
+
+namespace xml
+{
+ element::
+ ~element ()
+ {
+ for (elements::iterator i = children_.begin ();
+ i != children_.end ();
+ ++i)
+ {
+ delete *i;
+ }
+ }
+}