glomde wrote:
> i I would like to extend python so that you could create hiercical
> tree structures (XML, HTML etc) easier ...
> With syntactical sugar:
> 
>   # build a tree structure
>   root = ET.Element("html")
>   *!*root:
>      *!*head("head"):
>          *!*title("title):
>               *=*text = "Page Title"
>      *!*body("body"):
>               *=*bgcolor = "#ffffff"
>               *=*text = "Hello, World!"

Hunt up PyYAML.  It might be what you want.

--Scott David Daniels
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to