微软MCAD 70-310 实战百题
题目内容

You need to write the c<ide that will parse the document and build the customerOutput string that will be used to write each row in the file.Which code segment should you use?

2021-12-25

A.Dim myNodeList As XmlNodeListmyRootNode.SelectNodes[/CustomerData/Customers)For Each curNode In myNodeList If curNode.HasChildNodes Then customerOutput -""For i « 0 To curNode.ChildNodes.Count - 1 customerOutput = curNode.ChildNodes(D.Name &一 »*=•,+curNode.ChildNodes(D.InnerText 'Code to write the output files goes here.Next i End If Next

B.Dim myNodeList As XmlNodeList = _ myRootNode.SelectNodes(/CustomerData/Customers)For Each curNode In myNodeListIf curNode.HasChildNodes Then customerOutput * ”"For i = 0 To curNode.ChildNodes.Count - 1 customerOutput * curNode.ChildNodes(D.Name &_ +curNode.ChildNodes(D.Value •Code to write the output file goes here.Next i End If Next

C.Dim myNodeList As XmlNodeList * myRootNode.SelectNodes (/Customers)For Each curNode In myNodeList If curNode.HasChildNodes Then customerOutput = ,M,For i = 0 To curNode.ChildNodes.Count - 1 customerOutput = curNode.ChildNodes (i) .Name &_"="+ curNode.ChildNodes(

D.Name &一 »*=•,+curNod

E.ChildNodes(D.InnerText 'Code to write the output files goes here.Next i End If NextB.Dim myNodeList As XmlNodeList = _ myRootNode.SelectNodes(/CustomerData/Customers)For Each curNode In myNodeListIf curNode.HasChildNodes Then customerOutput * ”"For i = 0 To curNode.ChildNodes.Count - 1 customerOutput * curNode.ChildNodes(D.Name &_ +curNode.ChildNodes(D.Value •Code to write the output file goes here.Next i End If NextC.Dim myNodeList As XmlNodeList * myRootNode.SelectNodes (/Customers)For Each curNode In myNodeList If curNode.HasChildNodes Then customerOutput = ,M,For i = 0 To curNode.ChildNodes.Count - 1 customerOutput = curNode.ChildNodes (i) .Name &_"="+ curNode.ChildNodes(D.InnerText 'Code to Write the output file goes here. .Next i End If NextD.Dim myNodeList As XmlNodeList = myRootNode.SelectNodes ("/Customers")For Each curNode In myNodeList If curNode.HasChildNodes Then customerOutput =""For i = 0 To curNode.ChildNodes.Count - 1customerOutput =_ curNode.ChildNodes(D.Attributes(0).value + ='&_ curNode.ChildNodes(i) .Attributes (1) .Value 'Code to write the output file goes here.Next i End If Next

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端