题目内容

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
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

查看答案
更多问题

居民分类台帐包括哪几类?

小餐馆的设施与布局标准是什么?

在螺纹标注中,M16×1、5左代表(),直径16mm,螺距1、5mm,左旋。

如何处理钻井液碳酸根和碳酸氢根污染?

答案查题题库