久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='3SYOA'></bdo><ul id='3SYOA'></ul>
  • <i id='3SYOA'><tr id='3SYOA'><dt id='3SYOA'><q id='3SYOA'><span id='3SYOA'><b id='3SYOA'><form id='3SYOA'><ins id='3SYOA'></ins><ul id='3SYOA'></ul><sub id='3SYOA'></sub></form><legend id='3SYOA'></legend><bdo id='3SYOA'><pre id='3SYOA'><center id='3SYOA'></center></pre></bdo></b><th id='3SYOA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3SYOA'><tfoot id='3SYOA'></tfoot><dl id='3SYOA'><fieldset id='3SYOA'></fieldset></dl></div>
  • <legend id='3SYOA'><style id='3SYOA'><dir id='3SYOA'><q id='3SYOA'></q></dir></style></legend>
    <tfoot id='3SYOA'></tfoot>

        <small id='3SYOA'></small><noframes id='3SYOA'>

      1. C# - 解析 XSD 架構 - 將所有元素獲取到組合框

        C# - Parsing XSD schema - get all elements to combobox(C# - 解析 XSD 架構 - 將所有元素獲取到組合框)

      2. <tfoot id='fCBhp'></tfoot>
          <tbody id='fCBhp'></tbody>

              <small id='fCBhp'></small><noframes id='fCBhp'>

              <i id='fCBhp'><tr id='fCBhp'><dt id='fCBhp'><q id='fCBhp'><span id='fCBhp'><b id='fCBhp'><form id='fCBhp'><ins id='fCBhp'></ins><ul id='fCBhp'></ul><sub id='fCBhp'></sub></form><legend id='fCBhp'></legend><bdo id='fCBhp'><pre id='fCBhp'><center id='fCBhp'></center></pre></bdo></b><th id='fCBhp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fCBhp'><tfoot id='fCBhp'></tfoot><dl id='fCBhp'><fieldset id='fCBhp'></fieldset></dl></div>
              • <bdo id='fCBhp'></bdo><ul id='fCBhp'></ul>

                  <legend id='fCBhp'><style id='fCBhp'><dir id='fCBhp'><q id='fCBhp'></q></dir></style></legend>
                1. 本文介紹了C# - 解析 XSD 架構 - 將所有元素獲取到組合框的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有 XSD 架構文件,我需要用架構文件中的元素填充我的組合框...

                  I have XSD Schema file and i need to fill my combobox with the elements from the schema file...

                  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
                     <xs:element name="auto">
                        <xs:complexType>
                           <xs:sequence>
                              <!-- Znacka -->
                              <xs:element name="znacka" type="xs:string"/>
                              <!-- pocetOsob -->
                              <xs:element name="pocetOsob" type="xs:int"/>
                              <!-- maxRychlost -->
                              <xs:element name="maxRychlost">
                                 <xs:complexType>
                                    <xs:simpleContent>
                                       <xs:extension base="xs:decimal">
                                          <xs:attribute name="jednotka" type="xs:string"/>
                                       </xs:extension>
                                    </xs:simpleContent>
                                 </xs:complexType>
                              </xs:element>
                              <!-- Motor -->
                              <xs:element name="motor">
                                 <xs:complexType>
                                    <xs:sequence>
                                       <xs:element name="vykon">
                                          <xs:complexType>
                                             <xs:simpleContent>
                                                <xs:extension base="xs:decimal">
                                                   <xs:attribute name="jednotka" type="xs:string"/>
                                                </xs:extension>
                                             </xs:simpleContent>
                                          </xs:complexType>
                                       </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="vyrobni_cislo" type="xs:string"/>
                                 </xs:complexType>
                              </xs:element>
                           </xs:sequence>
                        </xs:complexType>
                     </xs:element>
                  </xs:schema> 
                  

                  有人知道怎么做嗎?通過xpath?我有一半工作的代碼...我收到一條帶有元素 auto 的消息.

                  Anyone had idea how to do it? Through xpath? I have a half working code... I got a message with element auto.

                  String path = openSchema.FileName;
                  XmlTextReader xsd_file = new XmlTextReader(path);
                  XmlSchema schema = new XmlSchema();
                  schema = XmlSchema.Read(xsd_file, null);
                  
                  MessageBox.Show(schema.Items.Count.ToString());
                  
                  foreach (XmlSchemaElement element in schema.Items)
                  {
                      elements.Items.Add(element.Name);
                      MessageBox.Show(element.Name);
                  }
                  

                  非常感謝!

                  推薦答案

                  string xml = <your xml>;
                  var xs = XNamespace.Get("http://www.w3.org/2001/XMLSchema");
                  var doc = XDocument.Parse(xml);
                  // if you have a file: var doc = XDocument.Load(<path to xml file>)
                  foreach(var element in doc.Descendants(xs + "element"))
                  {
                      Console.WriteLine(element.Attribute("name").Value);
                  }
                  // outputs: 
                  // auto
                  // znacka
                  // pocetOsob
                  // maxRychlost
                  // motor
                  // vykon
                  

                  這篇關于C# - 解析 XSD 架構 - 將所有元素獲取到組合框的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調用按鈕 OnClick)
                    <tbody id='DggD7'></tbody>

                      <small id='DggD7'></small><noframes id='DggD7'>

                      <legend id='DggD7'><style id='DggD7'><dir id='DggD7'><q id='DggD7'></q></dir></style></legend><tfoot id='DggD7'></tfoot>
                        <bdo id='DggD7'></bdo><ul id='DggD7'></ul>
                          • <i id='DggD7'><tr id='DggD7'><dt id='DggD7'><q id='DggD7'><span id='DggD7'><b id='DggD7'><form id='DggD7'><ins id='DggD7'></ins><ul id='DggD7'></ul><sub id='DggD7'></sub></form><legend id='DggD7'></legend><bdo id='DggD7'><pre id='DggD7'><center id='DggD7'></center></pre></bdo></b><th id='DggD7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='DggD7'><tfoot id='DggD7'></tfoot><dl id='DggD7'><fieldset id='DggD7'></fieldset></dl></div>

                            主站蜘蛛池模板: 天天拍天天插 | 婷婷毛片| 亚洲一区二区免费 | 日韩一区二区三区视频 | 91麻豆久久久 | 久久99精品久久久久久 | 免费在线观看毛片 | 欧美成人精品激情在线观看 | 黄色亚洲网站 | 久久国产精99精产国高潮 | 精品国产乱码久久久久久影片 | 欧美一级片中文字幕 | 日韩午夜场| 欧美一区二区 | 久久久久久国产 | 日本视频一区二区三区 | 草久久久 | 男人的天堂久久 | 日本一区二区三区在线观看 | 精品国产一区二区三区久久久蜜月 | 日本不卡一二三 | 全免一级毛片 | 日本五月婷婷 | 亚洲有码转帖 | 国产在线一区二区三区 | 91原创视频| 美女在线观看av | 日本在线播放一区二区 | 成人伊人网 | 精品国产精品一区二区夜夜嗨 | 欧美日韩中文字幕在线播放 | 91精品久久久久久久久久入口 | 亚洲综合二区 | 有码一区 | 91精品国产综合久久久久久丝袜 | 成人福利网 | 国产成人精品久久二区二区 | 国产精品毛片久久久久久 | 精品一区二区观看 | 欧美1区2区 | 在线国产一区二区 |