how to find the following node (siblings and preceding) using xpath -


 <months>   <month name="january"></month>   <month name="february"></month>   <month name="march"></month>   <month name="april"></month>    ...[etc]  </months> 

how siblings here above code want xpath node after february

i want xpath expression such if given programming questions site give month after february

you can have xpath this:

//months/month[@name='february']/following-sibling::month 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -