summaryrefslogtreecommitdiff
path: root/examples/cxx/tree/custom/mixed/people.xml
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-30 19:14:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-30 19:14:56 +0200
commit4a2834255dc48166afc537e9e9dce80be457fa14 (patch)
tree9a1649ba753055dc98526f715f46e03468c82a02 /examples/cxx/tree/custom/mixed/people.xml
parentb43b5b2a9b5430e8e7034c08aff06e572da7b762 (diff)
New example showing handling of mixed content with type customization
Diffstat (limited to 'examples/cxx/tree/custom/mixed/people.xml')
-rw-r--r--examples/cxx/tree/custom/mixed/people.xml39
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/cxx/tree/custom/mixed/people.xml b/examples/cxx/tree/custom/mixed/people.xml
new file mode 100644
index 0000000..4e5c0ca
--- /dev/null
+++ b/examples/cxx/tree/custom/mixed/people.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+
+<!--
+
+file : examples/cxx/tree/custom/mixed/people.xml
+author : Boris Kolpackov <boris@codesynthesis.com>
+copyright : not copyrighted - public domain
+
+-->
+
+<ppl:directory xmlns:ppl="http://www.codesynthesis.com/people"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.codesynthesis.com/people people.xsd">
+
+ <person>
+ <first-name>John</first-name>
+ <last-name>Doe</last-name>
+ <gender>male</gender>
+ <age>32</age>
+ <bio>
+ <xhtml xmlns="http://www.w3.org/1999/xhtml">
+ <p>Married to Jane Doe.</p>
+ </xhtml>
+ </bio>
+ </person>
+
+ <person>
+ <first-name>Jane</first-name>
+ <last-name>Doe</last-name>
+ <gender>female</gender>
+ <age>28</age>
+ <bio>
+ <xhtml xmlns="http://www.w3.org/1999/xhtml">
+ <p>Married to John Doe.</p>
+ </xhtml>
+ </bio>
+ </person>
+
+</ppl:directory>