你正在創(chuàng)建一個處理 XML 文檔的應(yīng)用。其 XML 文檔格式如下:
在你的應(yīng)用中,你已經(jīng)裝入 XML 文檔到一個名為 subscriber 的對象中。請問,下面那一個代 碼正確的得到 phone 屬性的值?()
A.subscriber.DocumentElement.Attributes("phone").Value
B.subscriber.DocumentElement.ChildNodes[2].Value
C.subscriber.FirstChild.Attributes("phone").Value
D.subscriber.GetElementById("phone").Value
E.subscriber.DocumentElement.GetAttributeNode("phone").Value