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.

题目

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


相似考题
更多“You load an XmlDocument named doc with the following XML. Dictionary World Atlas You ”相关问题
  • 第1题:

    You’re such a hardworking student, you()the praise.

    A、reserve

    B、deserve

    C、conserve

    D、preserve


    正确答案:B

  • 第2题:

    You've misspelled this word again.You'd better look it up ()

    此题为判断题(对,错)。


    参考答案:对

  • 第3题:

    Me,you是两个初始集合,则下列关于派生集合定义方式正确的是

    A.link/me,you/:a;

    B.link(me,you):a;

    C.link/me you/a;

    D.link(me,you)/a;


    link(me,you):a;

  • 第4题:

    – David, you've been losing your temper over nothing lately.– ( ).

    A. I haven’t been getting much sleep either

    B. You’d better not push yourself too hard, or you’ll get sick

    C. I’m sorry. I shouldn’t have blown up like that

    D. You’d better do exercises regularly


    正确答案:C

  • 第5题:

    Tony, you′ ve got a fever. You__________ that cold shower last night.

    A.might not have
    B.could have had
    C.hadn't have
    D.shouldn't have had

    答案:D
    解析:
    考查情态动词。句意为“托尼,你发烧了。昨晚你本不应该洗冷水澡的”。shouldn’t have done意为“本不该做某事(但做了)”,故选D。

  • 第6题:

    你最好控制一下上网聊天的时间。(汉译英)

    A.You'd better set a limit for your online chat time.

    B.You'd better set a limit on your online chat time.

    C.You'd better set a limit on your online chatting time.

    D.You'd better set a limit for your online chatting time.


    You'd better set a limit on your online chatting time.