你正在创建一个处理 XML 文档的应用。其 XML 文档格式如下:在你的应用中,你已经装入 XML 文档到一个名为 subscriber 的对象中。请问,下面那一个代 码正确的得到 phone 属性的值?()

<img src='https://img2.soutiyun.com/ask/uploadfile/2019-03-27/fab11ea66e1badd775ad11923087fd2b.jpg' /> A.subscriber.DocumentElement.Attributes(&quot;phone&quot;).Value B.subscriber.DocumentElement.ChildNodes[2].Value C.subscriber.FirstChild.Attributes(&quot;phone&quot;).Value D.subscriber.GetElementById(&quot;phone&quot;).Value E.subscriber.DocumentElement.GetAttributeNode(&quot;phone&quot;).Value

时间:2024-01-16 13:09:15

相似题目