summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'testguidexml.py')
-rw-r--r--testguidexml.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/testguidexml.py b/testguidexml.py
new file mode 100644
index 0000000..a84ed36
--- /dev/null
+++ b/testguidexml.py
@@ -0,0 +1,22 @@
+#! /usr/bin/env python
+
+import guidexml
+
+doc = guidexml.Document('mydocument', '2.0', 'Sehr nuetzliches infos', 'en', '/doc/en/bla')
+
+doc.addAuthor('creator', 'asyme', 'asymmail@googlemail.de')
+doc.addAuthor('creator', 'rbu')
+
+chap = guidexml.Chapter('1 chapter')
+sect = guidexml.Section('1 section')
+sect = guidexml.Section('1 section')
+
+taguri = guidexml.uri("http://google.de")
+tagpara = guidexml.paragraph("hello world, Visit: %s. das ist ein sehr langer text mit mehr als MAXLENGTH Zeichen." % repr(taguri))
+
+doc.append(chap)
+chap.append(sect)
+sect.append(tagpara)
+
+doc.create('/', 'file')
+