nerdexam
Zend

200-530 · Question #178

What XML component does the following XPath query try to match? Zend 200-530 Exam //foo[bar/@id=5]

The correct answer is E. all of the foo elements that have a child node bar, whose id attribute is equal to 5. See the full explanation below for the reasoning.

Question

What XML component does the following XPath query try to match? Zend 200-530 Exam //foo[bar/@id=5]

Options

  • Abar element with an id attribute whose value is equal to 5
  • Bfoo element containing a child node bar tag
  • Cid attribute whose value is equal to 5
  • Dfoo element with a child note bar whose id attribute is equal to 5
  • Eall of the foo elements that have a child node bar, whose id attribute is equal to 5

How the community answered

(19 responses)
  • A
    11% (2)
  • B
    5% (1)
  • D
    11% (2)
  • E
    74% (14)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice