Correct answer should be C, xpath has a index number starting from 1, and I have run the snippet using lxml in python confirms index 1 is correct:
from lxml import etree
html = etree.parse('employee.html')
print type(html)
result = html.xpath('//employee[1]/firstName/text()')
print result
Output:
<type 'lxml.etree._ElementTree'>
['Jane']
This section is not available anymore. Please use the main Exam Page.300-535 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
endermao
Highly Voted 4 years, 1 month agokkass
2 years, 4 months agoDreamnetdev
Most Recent 8 months agocharlesch
2 years, 11 months agochimee
4 years, 1 month ago