Note that the problem description shows four output columns, and mentions large data.
In reply to Re^3: Parsing a Tree to a Table. by oiskuu in thread Parsing a Tree to a Table. by choroba