move examples to doc directory

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-10-29 17:54:37 +01:00
parent 270ac2bc0d
commit 7aee121bd7
30 changed files with 0 additions and 1 deletions

17
doc/example/genxml.py Normal file
View File

@@ -0,0 +1,17 @@
import py
class ns(py.xml.Namespace):
pass
doc = ns.books(
ns.book(
ns.author("May Day"),
ns.title("python for java programmers"),),
ns.book(
ns.author("why", class_="somecssclass"),
ns.title("Java for Python programmers"),),
publisher="N.N",
)
print doc.unicode(indent=2).encode('utf8')