summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-12 20:12:07 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-12 20:12:07 +0100
commit37a691eb6a5ed31dfc28e15db9d076322ab5fdde (patch)
tree04d5c1f901d8fcc1f3e90d3ca24e40f37bb0d5de /testdata
parent89f01a0a49f4fd23034d532b37d54d3f3f612082 (diff)
improved XML parser to support transparency on default fields.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/xmlparser/simple_book.oxd28
1 files changed, 0 insertions, 28 deletions
diff --git a/testdata/xmlparser/simple_book.oxd b/testdata/xmlparser/simple_book.oxd
index de33536..abf575f 100644
--- a/testdata/xmlparser/simple_book.oxd
+++ b/testdata/xmlparser/simple_book.oxd
@@ -1,45 +1,17 @@
<?xml version="1.0"?>
<document>
<import rel="domain" src="book_domain.oxm"/>
- <!-- Currently we have only one root. Thus we need no wrapper. -->
- <!-- Note that we only reference "book" here, which resolves to the book
- domain as well as the book StructuredClass. This is unambigous however,
- because we are looking for a StructuredClass. The resolving mechanism
- should be able to handle this. -->
<book>
- <!-- implicitly:
- <book name="">
- -->
- <!-- note that we do not refer to the attributes explicitly. Attributes are
- referenced by their key-value pairs as defined in the according
- StructType. For an example please refer to the more complex book
- domain. -->
- <!--<paragraph>-->
- <text>
This might be some introductory text or a dedication.
- </text>
- <!--</paragraph>-->
<!-- Note that a better version of the book domain might specify
headings here. -->
<chapter name="myFirstChapter">
- <paragraph>
- <text>
Here we might have an introduction to the chapter.
- </text>
- </paragraph>
<section name="myFirstSection">
- <paragraph>
- <text>
Here we might find the actual section content.
- </text>
- </paragraph>
</section>
<section name="mySndSection">
- <paragraph>
- <text>
Here we might find the actual section content.
- </text>
- </paragraph>
</section>
</chapter>
</book>