[reportlab-users] query! urgent

Shaktinath Pandey reportlab-users@reportlab.com
Thu, 2 Jan 2003 20:11:35 +0530

I am using pyRXP parser in python,which parses the xml file and puts it
in the form of Tuple Tree.

for e.g=20
 The xml file is like=20


The pyRXP parser will parse and put in the following format

('PRODUCT', None, ['\t\n\t', ('G1', None, ['\n\t\t', ('P2', None, [],
None), '\n\t\t', ('G3', None, ['\n\t\t\t', ('P3', None,
[], None), '\n\t\t\t', ('P4', None, [], None), '\n\t\t\t', ('G5', None,
['\n\t\t\t\t', ('G6', None, [], None), '\n\t\t\t\t', (
'G7', None, [], None), '\n\t\t\t'], None), '\n\t\t'], None), '\n\t\t',
('G4', None, [], None), '\n\t'], None), '\n\t', ('G2',
None, [], None), '\n\t', ('P1', None, [], None), '\n'], None)

Now I want to directly hit 'P2' from the above Tuple Tree
i.e I don't want to traverse through the entire tree and reach to 'P2' i
want 'P2' element directly.
How can I achieve this what are the commands for that.


Shakti Nath Pandey
Banking Bussiness Unit
Infosys Technologies Ltd,