350-601 · Question #246
In this data structure, what is the XML terminology for the currency="usd" code snippet?
In XML, currency="usd" represents an attribute, which provides additional information or properties for an element within its start tag.
Question
In this data structure, what is the XML terminology for the currency=“usd” code snippet?
Exhibit
Options
- Aattribute
- Broot element end tag
- Croot element start tag
- Dcharacter
Why each option
In XML, `currency="usd"` represents an attribute, which provides additional information or properties for an element within its start tag.
A root element end tag closes the top-level element, appearing as `</root_element_name>`.
A root element start tag opens the top-level element, appearing as `<root_element_name attribute="value">`. While attributes are placed within a start tag, the snippet `currency="usd"` itself is not the entire start tag.
'Character' is too broad and refers to individual letters or symbols, not the structured XML component represented by `currency="usd"`.
Concept tested: XML syntax - attributes
Source: https://learn.microsoft.com/en-us/dotnet/standard/data/xml/xml-elements-vs-attributes
Topics
Community Discussion
No community discussion yet for this question.
