summaryrefslogtreecommitdiff
path: root/examples/dtd/tab-obj.dtd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dtd/tab-obj.dtd')
-rw-r--r--examples/dtd/tab-obj.dtd17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/dtd/tab-obj.dtd b/examples/dtd/tab-obj.dtd
new file mode 100644
index 0000000..2cfc16f
--- /dev/null
+++ b/examples/dtd/tab-obj.dtd
@@ -0,0 +1,17 @@
+<!ELEMENT numField ( #PCDATA ) >
+
+<!ELEMENT object ( property+ ) >
+<!ATTLIST object name NMTOKEN #REQUIRED >
+
+<!ELEMENT property ( #PCDATA ) >
+<!ATTLIST property name NMTOKEN #REQUIRED >
+
+<!ELEMENT rec ( numField, stringField, object? ) >
+<!ATTLIST rec id NMTOKEN #REQUIRED >
+
+<!ELEMENT stringField ( #PCDATA ) >
+
+<!ELEMENT table ( rec+ ) >
+
+<!ELEMENT xml ( table ) >
+