Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Cisco Exam 300-535 Topic 1 Question 66 Discussion

Actual exam question for Cisco's 300-535 exam
Question #: 66
Topic #: 1
[All 300-535 Questions]

Refer to the exhibit.

Using the provided XML snippet, which Xpath expression prints ''Jane''?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Pamella
1 months ago
Haha, option B is a bit of a joke, right? Why would you want the 'firstName' of the zeroth employee? That's just silly.
upvoted 0 times
...
Jacklyn
1 months ago
Option C all the way! Who counts from 1 anyway? The XML indices start at 0, everyone knows that.
upvoted 0 times
Audra
7 days ago
No, option C is the right one. The index for XML does start at 0.
upvoted 0 times
...
Jaime
12 days ago
I think option A is correct because it starts counting from 1 in the XPath expression.
upvoted 0 times
...
Kirk
15 days ago
I agree, option C is the correct one. The index starts at 0 in XML.
upvoted 0 times
...
...
Izetta
1 months ago
This is a tricky one. I'm torn between options A and C, but I think I'll go with C. It just feels more natural to use 'text()' instead of 'value()'.
upvoted 0 times
Hailey
10 days ago
I would go with option C as well. 'text()' is commonly used for extracting text values in XML.
upvoted 0 times
...
Wava
16 days ago
I agree, 'text()' is usually used for getting the text content in XML. Option C seems like the right choice.
upvoted 0 times
...
Whitney
1 months ago
I think option C is correct too. It makes sense to use 'text()' for getting the text value.
upvoted 0 times
...
...
Delisa
2 months ago
Hold on, I'm confused. Isn't the first employee index 0, not 1? I'm going with option D.
upvoted 0 times
Felix
7 days ago
Actually, I agree with option D) //employee[0]/firstName/text()
upvoted 0 times
...
Oren
11 days ago
No, I believe it's C) //employee[1]/firstName/text()
upvoted 0 times
...
Ashley
17 days ago
I think the correct option is A) //employee[1]/firstName/value()
upvoted 0 times
...
...
Rebbeca
2 months ago
Option A looks good to me. The 'value()' function should return the text value of the 'firstName' element for the first 'employee' element.
upvoted 0 times
...
Casie
2 months ago
Hmm, I think it's option C. The XML snippet shows the 'firstName' element as a child of the 'employee' element, and we want to select the text value of the first 'employee' element.
upvoted 0 times
...
Jettie
2 months ago
I'm not sure, but I think Hyman might be right. The answer could be C)
upvoted 0 times
...
Hyman
3 months ago
I disagree, I believe the correct answer is C) //employee[1]/firstName/text()
upvoted 0 times
...
Doug
3 months ago
I think the answer is A) //employee[1]/firstName/value()
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77