Adobe
9A0-127 · Question #52
Given the XML object definition: <cfxml variable="xmlData"> <cars> <car> <name>Ford</name> <year>1990</year> <color>Red</color> </car> <car> <name>Toyota</name> <year>1995</year> <color>Blue</color>…
The correct answer is A. #toString(xmlData.cars.car[1])#. See the full explanation below for the reasoning.
Question
Given the XML object definition:
<cfxml variable="xmlData"> <cars> <car> <name>Ford</name> <year>1990</year> <color>Red</color> </car> <car> <name>Toyota</name> <year>1995</year> <color>Blue</color> </car> <car> <name>KIA</name> <year>2000</year> <color>Green</color> </car> </cars> </cfxml> Which variable correctly outputs the XML document representing the car with name value Ford?
Options
- A#toString(xmlData.cars.car[1])#
- B#toString(xmlData.cars.car[0])#
- C#toString(xmlData.car[1])#
- D#toString(xmlData.cars[1])#
How the community answered
(29 responses)- A76% (22)
- B14% (4)
- C7% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.