麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 開發 > XML > 正文

XmlNodeList

2024-09-05 20:55:43
字體:
來源:轉載
供稿:網友

returns an xmlnodelist containing a list of all descendant elements that match the specified name.

overload list
returns an xmlnodelist containing a list of all descendant elements that match the specified name.

[visual basic] overloads overridable public function getelementsbytagname(string) as xmlnodelist
[c#] public virtual xmlnodelist getelementsbytagname(string);
[c++] public: virtual xmlnodelist* getelementsbytagname(string*);
[jscript] public function getelementsbytagname(string) : xmlnodelist;
returns an xmlnodelist containing a list of all descendant elements that match the specified localname and namespaceuri.

[visual basic] overloads overridable public function getelementsbytagname(string, string) as xmlnodelist
[c#] public virtual xmlnodelist getelementsbytagname(string, string);
[c++] public: virtual xmlnodelist* getelementsbytagname(string*, string*);
[jscript] public function getelementsbytagname(string, string) : xmlnodelist;
example
[visual basic, c#] the following example creates a xmldocument object and uses the getelmentsbytagname method and the resulting xmlnodelist object to display all the book titles.

[visual basic, c#] note   this example shows how to use one of the overloaded versions of getelementsbytagname. for other examples that may be available, see the individual overload topics.
[visual basic]
option explicit
option strict

imports system
imports system.io
imports system.xml

public class sample
    
    public shared sub main()
        'create the xmldocument.
        dim doc as new xmldocument()
        doc.load("books.xml")
        
        'display all the book titles.
        dim elemlist as xmlnodelist = doc.getelementsbytagname("title")
        dim i as integer
        for i = 0 to elemlist.count - 1
            console.writeline(elemlist(i).innerxml)
        next i
    end sub 'main
end class 'sample
[c#]


using system;
using system.io;
using system.xml;

public class sample
{
  public static void main()
  {
    //create the xmldocument.
    xmldocument doc = new xmldocument();
    doc.load("books.xml");

    //display all the book titles.
    xmlnodelist elemlist = doc.getelementsbytagname("title");
    for (int i=0; i < elemlist.count; i++)
    {   
      console.writeline(elemlist[i].innerxml);
    }  

  }
}
[c++, jscript] no example is available in c++ or jscript. to view a visual basic or c# example, click the language filter button  in the upper-left corner of the page.
 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 国产人成精品一区二区三 | 99爱视频在线| 国产电影av在线 | 久久影院国产精品 | chinese乱子伦xxxx国语对白 | 久久男人的天堂 | 男女一边摸一边做羞羞视频免费 | 19禁国产精品福利视频 | 性aaa| 国产精品视频一区二区噜噜 | 色综合网在线观看 | 精品成人av一区二区在线播放 | 日本在线不卡一区二区 | 极品销魂一区二区三区 | 精品一区二区三区免费视频 | 毛片一级网站 | 久久网站热最新地址4 | 欧美激情 在线播放 | av免费入口 | 久久污| 欧美一级特黄aaaaaa在线看首页 | 日韩做爰视频免费 | 在线成人免费视频 | 久久精品欧美视频 | 国产18成人免费视频 | 鲁人人人鲁人人鲁精品 | 999插插插 | 亚洲国产高清一区 | 亚洲性生活视频 | 午夜精品区| 精品国产一区二区三区久久久蜜 | 中文国产在线视频 | 日韩av在线资源 | 国产精品欧美日韩一区二区 | av观看国产| 99ri在线| 国产一级aaa全黄毛片 | 久久成人综合视频 | 亚洲骚综合 | 蜜桃视频在线免费播放 | 亚洲成人黄色片 |