Question
You have the following XML file sample for the Items list shown in the exhibit.
You plan to create the next XML file by using an XMLport object.
You need to complete the code segment to export the file in the required format.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
```al
schema
{
textelement(Items)
{
[Dropdown 1](Item; Item)
{
[Dropdown 2](No; Item."No.")
{ }
[Dropdown 3](Description; Item.Description)
{ }
}
}
}
```
Explanation
For Dropdown 1, choose Tableelement, because each Item node is one record of the Item table and a table element iterates over those records; the field and text nodes cannot declare a record source such as (Item; Item).
For Dropdown 2, choose Fieldattribute, because the sample writes the number as an attribute of the Item element, as in <Item No="1000">, and the value comes from a table field. A Fieldelement would produce a separate <No> child element, which does not match the sample, and the text nodes are not bound to a table field.
For Dropdown 3, choose Fieldelement, because Description appears in the sample as a child element with its own opening and closing tags, and its value comes from the Item.Description field.