I’ve been trying to implement my own class (that i’ve attached) TBDataParser, a class inherited from TSAXParser. The first thing i want is to parse an xml file and for every node that has an attribute “name” create a folder with that name. Of course then i want to access the list of parent folders so i can do operations like currentFolder->RemoveLast() at the end of the callback function TBDataParser::OnEndElement.
The problem is i get a segmentation fault if i try to add a folder created in gROOT->GetRootFolder() to the TList of parent folders. If you run TestParse.C you can see that before getting the segmentation violation it prints the address of the folder and the parent folder list so they do exist…
Is there something wrong with my macro?
EDIT: I’ve added my xml file