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

  • <small id='9B9JR'></small><noframes id='9B9JR'>

    <legend id='9B9JR'><style id='9B9JR'><dir id='9B9JR'><q id='9B9JR'></q></dir></style></legend>
      <bdo id='9B9JR'></bdo><ul id='9B9JR'></ul>

    <tfoot id='9B9JR'></tfoot>

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

      1. 模式驗(yàn)證 XML

        schema validation XML(模式驗(yàn)證 XML)
            <bdo id='uhgq9'></bdo><ul id='uhgq9'></ul>
              <tbody id='uhgq9'></tbody>
            <i id='uhgq9'><tr id='uhgq9'><dt id='uhgq9'><q id='uhgq9'><span id='uhgq9'><b id='uhgq9'><form id='uhgq9'><ins id='uhgq9'></ins><ul id='uhgq9'></ul><sub id='uhgq9'></sub></form><legend id='uhgq9'></legend><bdo id='uhgq9'><pre id='uhgq9'><center id='uhgq9'></center></pre></bdo></b><th id='uhgq9'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uhgq9'><tfoot id='uhgq9'></tfoot><dl id='uhgq9'><fieldset id='uhgq9'></fieldset></dl></div>
              <tfoot id='uhgq9'></tfoot>
              <legend id='uhgq9'><style id='uhgq9'><dir id='uhgq9'><q id='uhgq9'></q></dir></style></legend>
            • <small id='uhgq9'></small><noframes id='uhgq9'>

                  本文介紹了模式驗(yàn)證 XML的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我有一個(gè) XSD 文件和一個(gè) XML 文件,如何檢查 XML 是否像 XSD 文件一樣在正確的架構(gòu)中?

                  I have an XSD file and an XML file, how can I check if the XML is in the right schema like the XSD file?

                  我知道 XmlDocument 類中有一個(gè)驗(yàn)證函數(shù),但它需要一個(gè)事件處理程序我只需要對(duì)或錯(cuò).

                  i know there is an validate function in the XmlDocument class, but it needs an event handler and all I need is true or false.

                  附:我在 Visual Studio 2010 中工作.

                  P.S. I'm working inVisual Studio 2010.

                  推薦答案

                  有一個(gè)很簡(jiǎn)單的方法:

                  private void ValidationCallBack(object sender, ValidationEventArgs e)
                  {  
                      throw new Exception();
                  }
                  
                  public bool validate(string sxml)
                  {
                      try
                      {
                          XmlDocument xmld=new XmlDocument ();
                          xmld.LoadXml(sxml);
                          xmld.Schemas.Add(null,@"c:	he file location");
                          xmld.validate(ValidationCallBack);
                          return true;
                      }
                      catch
                      {
                          return false;
                      }
                  }
                  

                  P.S : 我不是在 VS 中寫(xiě)的,所以可能有不區(qū)分大小寫(xiě)的單詞,但這段代碼有效!

                  P.S : I didn't wrote this in VS so there might be word that not in case sensitive, but this codes works!

                  這篇關(guān)于模式驗(yàn)證 XML的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                • <small id='W8aeY'></small><noframes id='W8aeY'>

                  <tfoot id='W8aeY'></tfoot>

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

                          • 主站蜘蛛池模板: 全部免费毛片在线播放网站 | av男人的天堂在线 | 国产一区二区在线播放 | 午夜激情免费视频 | 亚洲精品久久久久久久久久久久久 | 激情a| 无码日韩精品一区二区免费 | 国产精品视频999 | 日韩一及片 | 日韩欧美精品在线 | 99国产精品久久久久久久 | 亚洲伊人久久综合 | 久久久久国产一区二区三区 | 亚洲精品视频在线看 | 免费v片 | 一区二区三区四区电影视频在线观看 | 亚洲自拍偷拍av | 日韩字幕一区 | 国产欧美视频一区二区三区 | 亚洲成人精选 | 欧美区在线 | 欧美嘿咻 | 精品日韩一区二区三区 | 中文字幕免费中文 | 国产成人精品午夜视频免费 | 日韩精品一区二区三区久久 | 国产传媒毛片精品视频第一次 | 91欧美激情一区二区三区成人 | 国产偷录叫床高潮录音 | 精久久久 | 精品美女在线观看视频在线观看 | h视频网站在线观看 | 国产成人免费网站 | 欧美一区二区久久 | 伊人二区 | 久草成人 | 午夜影院| 久久国产视频一区 | 国产成人综合在线 | 天天综合国产 | 午夜av在线 |