php - xpath and self closing <br/> -
can tell me how can access text after < br / > in following?
<li> <span class="title">size</span> <p>ladies<br />case diameter: 27.0 mm</p> </li>
for reason, cannot past it... however, can whats in front of (ladies)
thanks!
use:
/*/p/br/following-sibling::text()[1]
do note problem expression:
/li/p/br/following-sibling::text()
depending on xml document may select more 1 (actually all) text-node following siblings of br
, want text node follows br
.
Comments
Post a Comment