I was trying to get list of xml strings with parent-child relation. Then i realized xpath node does not relate any two selection. After a little research, i discoverd “node cell” option to slice the whole xml codes into desired family(parent+child) parts. But i couldnt achived that either. because xpath node does not allow me to select multiple tags at same time. for demonstration my code is like that;
.
.
.
<h5>
<u>A</u>
</h5>
<ul class="listss">
<li>
<h5>
<a href="link">
linktext
</a>
</h5>
</li>
<li>
<h5>
<a href="link2">
linktext2
</a>
</h5>
</li>
</ul>
<h5>
<u>B</u>
</h5>
<ul class="listss">
.\
.(SAME TAGS AS ABOVE)
./
</ul>
<h5>
<u>C</u>
</h5>
<ul class="listss">
.\
.(SAME TAGS AS ABOVE)
./
</ul>
<h5>
<u>D</u>
</h5>
<ul class="listss">
.\
.(SAME TAGS AS ABOVE)
./
</ul>
.
.
.
I just want first h5 and ul tags together like this;
.
.
.
<h5>
<u>A</u>
</h5>
<ul class="listss">
<li>
<h5>
<a href="link">
linktext
</a>
</h5>
</li>
<li>
<h5>
<a href="link2">
linktext2
</a>
</h5>
</li>
</ul>
How could it possible.