MCQs > IT & Programming > XML > From the following XML Code Snippet, the model name of the Mercedes manufacturer is to be displayed. Which of the following options is correct? BMW MT3GTR Mercedes E-Class Porche 911 Turbo

XML MCQs

From the following XML Code Snippet, the model name of the Mercedes manufacturer is to be displayed. Which of the following options is correct?

<?xml version="1.0" encoding="ISO-8859-1"?>
<cars>
     <car>
           <manufacturer>BMW</manufacturer>
           <model>MT3GTR</model>
       </car>
       <car>
           <manufacturer>Mercedes</manufacturer>
           <model>E-Class</model>
     </car>
   <car>
           <manufacturer>Porche</manufacturer>
           <model>911 Turbo</model>
   </car>
</cars>


Answer

Correct Answer: xmlDoc.getElementsByTagName("car")[1].childNodes[1].nodeValue;

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