久久久久久久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. 模式驗證 XML

        schema validation XML(模式驗證 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'>

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

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個 XSD 文件和一個 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 類中有一個驗證函數(shù),但它需要一個事件處理程序我只需要對或錯.

                  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.

                  推薦答案

                  有一個很簡單的方法:

                  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 中寫的,所以可能有不區(qū)分大小寫的單詞,但這段代碼有效!

                  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)于模式驗證 XML的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guā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ù)調(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>

                          • 主站蜘蛛池模板: 日韩中文在线视频 | 在线国产视频观看 | 精品久久久久久国产 | 91传媒在线观看 | 日韩视频在线观看中文字幕 | 精品毛片| 成人精品视频 | 日韩欧美精品在线 | 国产女人与拘做受免费视频 | 成人字幕网zmw | 真人一级毛片 | 国产韩国精品一区二区三区 | 国产精品综合视频 | 99久久久久| 男女羞羞视频在线观看 | 午夜专区 | 精品国产乱码久久久久久a丨 | 人人玩人人添人人澡欧美 | 亚洲人在线观看视频 | 日韩av免费看 | 日本一区二区不卡视频 | 日本精品999| 亚洲一区二区久久 | 精国产品一区二区三区四季综 | 国产探花在线观看视频 | 中文在线播放 | 精品一区二区久久久久久久网精 | 成人一区二区三区 | 久久逼逼 | 午夜免费网站 | 亚洲视频在线观看 | 国产成人小视频 | 国产精品免费一区二区三区四区 | 亚洲一区二区三区在线播放 | 夜夜草 | 久久亚洲国产精品 | 欧美一区永久视频免费观看 | 狠狠色综合网站久久久久久久 | 午夜影院在线观看视频 | 亚洲精品久久久一区二区三区 | www.久久 |