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

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -