[Zope-dev] load_site.py: patch1 draft
Oleg Broytmann
phd@sun.med.ru
Mon, 4 Oct 1999 11:29:52 +0400 (MSD)
Hi!
Thanks, will try it...
On Mon, 4 Oct 1999, Anthony Pfrunder wrote:
> You may wish to use the XMLWidgets+XMLDocument Products as these provide
> what you are
> after (and mine when I update it ;). Basically, you can upload an XHTML
> file (or HTML file with a little work) and then use the ZDOM methods to
> query it. Check out:
>
> lib/python/ZDOM.py -- Superclass for the Zope Document Object Model
> lib/python/Products/XMLDocument/Node.py -- XML DOM methods
>
> For example, to get the properties of a tag:
>
> x = getElementByTagName('body')[0].getAttributes()
> for a in x:
> name = getName()
> value = getValue()
>
> Cheers,
>
> Anthony Pfrunder
>
Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.