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
Post a Comment