[cut] > > Without a better example or explanation of what you are trying to do it is > difficult
You're right. Actually i'm parsing an xml file using pyrxp, which returns something like this: (tagName, attributes, list_of_children, spare) Where list_of_children might "be a list with elements that are 4- tuples or plain strings". In other terms, if I have something like this: ('<tagA><tagB>bobloblaw</tagB></tagA>') it's parsed like this: ('tagA', None, [('tagB', None, ['bobloblaw], None)], None)... Fact is that my xml is much more deep... and I'm not sure how to resolve it thanx -- http://mail.python.org/mailman/listinfo/python-list