Representing XML in Tree Stores



What is the best way to represent complex xml in a tree store?

It seems like it should be easy, but when looping the models with gtk_tree_model_foreach() some problems arise: especially when there are multiple views on different notebook tabs.
The approach I am using is one Tree Store for each complex xml node. 
Then for each item in the first tree I have to loop all other trees to 
find the nodes that belong to it.  I do this by use gtk_tree_model_get() 
on each row to see if the sequence numbers match and if they do it gets 
processed.  The problem I have is I'm looping each store multiple times 
to find what I want, which seems inefficient, instead of looping each 
store once.
Any ideas?

Thanks



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]