假设你有一个订购图书的Web站点。其中有一个方法包含如下的代码段:现在,你需要从XmlDocument中移除discount元素。下面那两个代码段能达到这个目标?()
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);