Selecting nth sibling using XPath

XPath (XML Path Language) can be used to parse highly complex XML structures without the need to iterate over each node independently. A likely use case is to select the nth sibling or nth element from a list. Luckily, this can be easily achieved by using position(). To demonstrate the...