题目内容
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 with a large assembly(Line numbers are included for reference only):1 Dim xwriter As New XmlTextWriter("productNames.xml",2System.Text.Encoding.UTF8)3xwriter.WriteStartDocument(True)4xwriter.WriteStartElement("data", nwww.contozo.com")5Dim val As String * NextToken()6While val <> ""7xwriter.WriteElementString("item",_8"www.contozo.com", val)9val = NextToken()10xwriter.WriteEndElement()11xwriter.WriteEndDocument()12xwriter.Close()You find that productsNames.xml contains only two entries: prodO and prodl.Which XML output is produced by this code segment?
2021-12-25
A.
B. - prod0
- prodl
C. - prod0
- prodl
D. - prod0
- prodl