[EMAIL PROTECTED] wrote:
> 1) It appears as if the following logic works for determining whether
> an element is a parent:
>
> # assume elem is an ElementTree element
> if (elem.getchildren() == None):
> print 'this element is not a parent'
> else:
> print 'this element is a parent'
>
> My
1) It appears as if the following logic works for determining whether
an element is a parent:
# assume elem is an ElementTree element
if (elem.getchildren() == None):
print 'this element is not a parent'
else:
print 'this element is a parent'
My question is this: are there any other ways