Get the second element of an XML file using Xpath

I have an XML-File and I want to get the second element the tree

<?xml version="1.0"?>
   <book id="bk101">
     <author>Gambardella, Matthew</author>
     <title>XML Developer's Guide</title>
   <book id="bk102">
     <author>Freeman, Paul</author>
     <title>Getting well soon</title>

I found this Xpath syntax for the first element


so I thought I just change the 1 to a 2, but this does not work.
Does anyone know a solution?

give a try on
and get returned: Gambardella, Matthew

and get returned: XML Developer’s Guide


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.