But you cant mix python code in there when creating the nodes.
That is when it gets quite ugly an unreadable according to me.

But I also relly do think that this:

# build a tree structure
  root = ET.Element("html")
  *!*root:
     *!*head("head"):
         *!*title("title):
              *=*text = "Page Title"
     *!*body("body"):
              *=*bgcolor = "#ffffff"
              *=*text = "Hello, World!"

Especially if you start having deeper hierachies like. But the big
other plus is that you can
have any python code in beetween.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to