tuples within tuples
korovev76 at gmail.com
korovev76 at gmail.com
Fri Oct 26 08:54:24 EDT 2007
[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
More information about the Python-list
mailing list