Ich habe eine Parser geschrieben der soweit funktioniert. Er erkennt alle notwendigen startElemente und endElemente in der Form:
<tag1>
<utag11>Test zu 11</utag11>
<utag12>Test zu 12</utag12>
<utag13>Test zu 13</utag13>
</tag1>
<tag2>
<utag21>Test zu 21</utag21>
<utag22>Test zu 22</utag22>
<utag23>Test zu 23</utag23>
</tag2>
<tag3>
<utag31>Test zu 31</utag31>
<utag32>Test zu 32</utag32>
<utag33>Test zu 33</utag33>
</tag1>
was ist aber bei folgender Struktur:
<tag1>
Text vor den utags
<utag11>Test zu 11</utag11>
<utag12>Test zu 12</utag12>
<utag13>Test zu 13</utag13>
</tag1>
ich weiß nicht wie ich da rankomme. Mir fehlt dafür die Logik.
Vielleicht kann mir einer einen Tipp geben