你正在創(chuàng)建一個(gè)處理 XML 文檔的應(yīng)用。其 XML 文檔格式如下:
在你的應(yīng)用中,你已經(jīng)裝入 XML 文檔到一個(gè)名為 subscriber 的對(duì)象中。請(qǐng)問,下面那一個(gè)代 碼正確的得到 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