tuples within tuples

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Fri Oct 26 09:06:52 EDT 2007


On Fri, 26 Oct 2007 05:54:24 -0700, korovev76 wrote:

> [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

Resolve *what*?  The problem isn't clear yet; at least to me.  Above you
say what you get.  What exactly do you want?  Examples please.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list