You are troubleshooting a Visual Studio .NET application that was developed by a former colleague. The application contains a NextToken function. This function reads product names from a file. You find the following code segment within a large assembly:
You find that productNames.xml contains only two entries: prod0 and prod1.
Which XML output is produced by this code segment?
A.
<?xml version=”1.0″?>
<data xmlns=”www.contoso.com”>
<item = “prod0” />
<item = “prod1” />
</data>
B.
<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
<data>
<item xmlns=”www.contoso.com”>prod0</item>
<item xmlns=”www.contoso.com”>prod1</item>
</data>
C.
<?xml version=”1.0″?>
<data>
<item>prod0</item>
<item>prod1</item>
</data>
D.
<?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
<data xmlns=”www.contoso.com”>
<item>prod0</item>
<item>prod1</item>
</data>