欢迎来到易学考试网 易学考试官网
全部科目 > 微软认证考试 > MCTS > MCTS(70-528)

多项选择题

Your Web site processes book orders. One of the application methods contains the following code segment. XmlDocument doc = newXmlDocument(); doc.LoadXml(“10”+” Dictionary”); You need to remove the discount element from XmlDocument. Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. ()

    A. XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);
    B. XmlNode root = dec.DocumentElement;root.RemoveChild(root.SelectSingleNode(“discount”));
    C. doc.RemoveChild(doc.FirstChild);
    D. doc.DocumentElement.RemoveChild(doc.FirstChild);

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题