Retrieving the position of a BOD element
Use the GETPOSITION() function to retrieve the position of a BOD element, especially for elements that occur multiple times in a certain level. The position value can be used as an identifier on which node is being processed.
The GETPOSITION() function retrieves the position value of the
XPath that precedes it.
During inbound BOD processing, the position numbers are added to the XPath log, as in this example:
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[1]/Name/text()
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[1]/Year/text()
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[1]/Year/GETPOSITION()/text()
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[2]/Name/text()
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[2]/Year/text()
XPATH: ShowFinancialCalendar/DataArea/FinancialCalendar/CalendarYear[2]/Year/GETPOSITION()/text()