I am trying to parse an XML file with the following structure:
<I> <C c="test1"> <H><Pd pd="123"/> <fp="789" r="456"/> </H> <M m="test2"> <H><Pd pd="3456"/><R r="678"/> </H> </M> </C> <T t="0"> <T2>123</T2> <T3>2345</T3> </T> <T t="1"> <T1>23456</T1> <T2>23</T2> <T3>123</T3> <T4>456</T4> </T> </I>
I have a list of numbers, for example. 0 and 1 and a search pattern, for example. '23' Now I want to search for an XML file for all T-nodes with t = "number from my list", where one of the child nodes (T1, T2, T3) contains a search pattern.
Can someone help me get started with this problem? I want to use the Qt functions, but I donโt know how to start.
I am glad to every hint!
source share