-4
 <months>
  <month name="January"></month>
  <month name="February"></month>
  <month name="March"></month>
  <month name="April"></month>

  ...[etc]

</months>

how to get the siblings here from the above code i want the xpath for node after february

I want an XPath expression such that if given programming questions site it will give month after february

  • 1
    Possible duplicate of [How to select following sibling/xml tag using xpath](http://stackoverflow.com/questions/3139402/how-to-select-following-sibling-xml-tag-using-xpath) – har07 Feb 25 '16 at 06:13

1 Answers1

0

You can have a XPath something like this:

//months/month[@name='February']/following-sibling::month
JRodDynamite
  • 12,325
  • 5
  • 43
  • 63