QDom coloring
-
As I understand you want to visualize an xml tree for which purpose you should use a QTreeView or QTreeWidget class (or similar). With these your question is reasonable. QDom is a data structure to store XML data therefore with those speaking about coloring is not understandable.
-
-
I don't know the internas of your program, but at some time, you create your items. and there must be some logic on how to build them. And with the same logic, it should be possible to find them.
That is something, you have to solve and that is not a Qt problem, more a logical one.