On 04/11/05, Matthew Bevan <[EMAIL PROTECTED]> wrote: > ------ H ------ > L | C | R > ------ F ------
Seems a fairly standard layout, I use a similar method, with optional parts > I've attempted to use py:match statements to accomplish what I want, > but I can not seem to find any reference to the properties of the > "item" object. WTF? I know (from example) that item[:] returns all > child XML objects, and item.text returns you the CDATA portion. > However, I need a combination of both - and I need to test for its > existance in the first place. item in an instance of an ElementTree element. It contains a list of child elements (e.g. item[0] is the first child node, item[-1] is the last) and a dictionary of the nodes attributes (item.attrib). It also has various methods to manipulate the element and/ its children. You can access the name of the element with item.tag See http://effbot.org/zone/pythondoc-elementtree-ElementTree.htm for the details HTH -- wavy davy "True religon confronts earth with heaven and brings eternity to bear on time" - A. W. Tozer

