Exam 9A0-410 All QuestionsBrowse all questions from this exam
Question 27

The following XPath expression is retrieved: attachmentList[0]. What is the result?

    Correct Answer: C

    The given XPath expression 'attachmentList[0]' retrieves the object at index 0. In XPath, the indexing starts at 1, so 'attachmentList[0]' might be considered invalid or unconventional in typical use, but assuming the indexing is zero-based in this scenario, it would refer to the object at the zeroth position in the list. Therefore, the correct result would be retrieving the object at index 0.

Discussion
sg0206Option: A

A is correct list variables To reference an entire list variable, you use the name of the list variable. For example, to copy all of the data from a list variable named original_list to a list variable named copy_list, the XPath expression that you use to reference original_list is /process_data/original_list. To indicate the data item in a list variable, you need to specify the index position of the item. For example, a process stores document data in a list variable named listofdocs. You can use the execute operation of the Set Value service to retrieve the first document in the list and save it in a document variable named firstdoc. The XPath expression that returns the first document in the list is /process_data/listofdocs[1]. https://help.adobe.com/en_US/livecycle/10.0/WorkbenchHelp/WS92d06802c76abadb-1cc35bda128261a20dd-7d75.html