I have a XML document with this specitic structure :
<ul>
<li>
the
<a href="http://www...">dog</a>
is black
</li>
<li >
the
<a href="http://www....">cat</a>
is white
</li>
</ul>
But I have also this :
<ul>
<li>
the bird is blue
</li>
<li >
the
<a href="http://www....">frog</a>
</li>
</ul>
I don't know if there is a <a>
in my <li>
and where is it.
I would like the XPath query to get sentences like "the dog is black", "the cat is white", "the bird is blue" and "the frog"
Thanks !