JN0-221 Exam QuestionsBrowse all questions from this exam

JN0-221 Exam - Question 45


Click the Exhibit button.

Referring to the exhibit, which XML XPath expression will only show the IP address XML elements?

Show Answer
Correct Answer: A

To only show the IP address XML elements, the correct XPath expression is //address/name. The double slash (//) is used to select nodes from the document from the current node that matches the selection regardless of their location in the document. This expression specifically targets the <address> elements and retrieves their <name> child elements, which contain the IP addresses. Therefore, //address/name is the appropriate choice for extracting only the IP address elements.

Discussion

5 comments
Sign in to comment
owlbufi
Mar 20, 2021

Double Slash “//” – Double slash is used to create Xpath with relative path i.e. the xpath would be created to start selection from anywhere within the document.

owlbufiOption: A
Mar 20, 2021

Correct should be A.

abobeida94
Mar 26, 2021

A,B are the correct answers

shabbir1282Option: B
May 17, 2021

B is correct

penguin02007Option: A
Nov 17, 2023

A is correct. // Selects nodes in the document from the current node that match the selection no matter where they are