On Thu, 17 Aug 2006 10:10:47 -0400, seth <[EMAIL PROTECTED]> wrote:
>Is there a python library which is analogous to javascript for creating
>html/xhtml documents? e.g.:
>
> hidden = document.createElement("input")
> hidden.setAttribute("type", "hidden")
> hidden.setAttribute("name", "active_flag_hidden_" + ctl)
> if( dirtyArray[ctl].checked == true) {
> hidden.setAttribute("value", 'N')
> } else {
> hidden.setAttribute("value", 'Y')
> }
> document.forms['listForm'].appendChild(hidden)
At least fifty. The DOM API is heavily standardized with hundreds of
implementations in dozens of languages.
http://python.org/doc/lib/module-xml.dom.html
Jean-Paul
_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe:
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com