MCQs > IT & Programming > XML > The following are two XPath statements: Statement A: trafficsign[1][@type='warning'] Statement B: trafficsign[@type='warning'][1]

XML MCQs

The following are two XPath statements:

Statement A: trafficsign[1][@type="warning"]
Statement B: trafficsign[@type="warning"][1]


Answer

Correct Answer: Statement A selects the first trafficsign node if it has a type attribute with value warning and Statement B selects the first trafficsign node that has a type attribute with value warning.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

XML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

XML Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it