in reply to Re: Parsing a highly nested XML file correctly and efficiently
in thread Parsing a highly nested XML file correctly and efficiently

Thanks for your help. I hope I can make this a little more clear. 1) I want my output to be like this
TV show 1,Heroes,FULL,Page 65,-2,-3,5,8,yipppeee (d1|d2|Nest1->Nest2-> +d5->X|Nest1->Nest2->d5->Y|Nest1->Nest2->d6->X|Nest1->Nest2->d6->Y|Nes +t1->Nest2->Nest3->Nest4->d7->d9->d10->text) TV show 1,Heroes,FULL,Page 65,-2,-3,5,8,yipppeee (d1|d2|Nest1->Nest2-> +d5->X|Nest1->Nest2->d5->Y|Nest1->Nest2->d6->X|Nest1->Nest2->d6->Y|Nes +t1->Nest2->Nest3->Nest4->d7->d9->d10->text) TV show 1,Heroes,FULL,Page 65,-2,-3,5,8,yipppeee(d1|d2|Nest1->Nest2->d +5->X|Nest1->Nest2->d5->Y|Nest1->Nest2->d6->X|Nest1->Nest2->d6->Y|Nest +1->Nest2->Nest3->Nest4->d7->d9->d10->text) TV show 1,Heroes,FULL,Page 65,-2,-3,5,8,yipppeee(d1|d2|Nest1->Nest2->d +5->X|Nest1->Nest2->d5->Y|Nest1->Nest2->d6->X|Nest1->Nest2->d6->Y|Nest +1->Nest2->Nest3->Nest4->d7->d9->d10->text) TV show 2,Prison Break,FULL,Page 65,-2,-3,5,8,yipppeee TV show 2,Prison Break,FULL,Page 65,-2,-3,5,8,yipppeee TV show 2,Prison Break,FULL,Page 65,-2,-3,5,8,yipppeee TV show 2,Prison Break,FULL,Page 65,-2,-3,5,8,yipppeee
2) I do not want the data from parents labelled junk or notrequired. My current code displays those as well

Replies are listed 'Best First'.
Re^3: Parsing a highly nested XML file correctly and efficiently
by Discipulus (Canon) on Jun 10, 2016 at 08:23 UTC
    mmh for me it does not make it clearer
    TV show 1,Heroes,FULL,Page 65,-2,-3,5,8,yipppeee # does not match (at least for me..) with your description (if I under +stand it) (d1|d2|Nest1->Nest2->d5->X|Nest1->Nest2->d5->Y|Nest1->Nest2->d6->X|Nes +t1->Nest2->d6->Y|Nest1->Nest2->Nest3->Nest4->d7->d9->d10->text)

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.