You load an XmlDocument named doc with the following XML. Dictionary World Atlas You

题目内容(请给出正确答案)

You load an XmlDocument named doc with the following XML. Dictionary World Atlas You need to change the value for the genre attribute to NA for all book attributes. First, you add the following code segment to your class.Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book")Which additional two code segments can you use to achieve this goal?()

A. Dim node As XmlNodeFor Each node In nodes node.Attributes(0).Value = "NA"Next node

B. Dim node As XmlNodeFor Each node In nodes node.Attributes(1).Value = "NA"Next node

C. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("/genre") genre.Value = "NA"Next node

D. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("@genre") genre.Value = "NA"Next node

E. Dim node As XmlNodeFor Each node In nodes Dim genre As XmlNode = node.SelectSingleNode("genre") genre.Value = "NA"Next node

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。