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

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

  • <legend id='cRT1E'><style id='cRT1E'><dir id='cRT1E'><q id='cRT1E'></q></dir></style></legend>

        如何創(chuàng)建在屬性值驗證方面不同的 XSD?

        How to create a XSD which differs in validation on attribute value?(如何創(chuàng)建在屬性值驗證方面不同的 XSD?)
              <tbody id='KJ8Fj'></tbody>

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

              <bdo id='KJ8Fj'></bdo><ul id='KJ8Fj'></ul>

                • <legend id='KJ8Fj'><style id='KJ8Fj'><dir id='KJ8Fj'><q id='KJ8Fj'></q></dir></style></legend>

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

                • 本文介紹了如何創(chuàng)建在屬性值驗證方面不同的 XSD?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經搜索了一段時間,得出的結論是可能無法更改每個屬性值的驗證.

                  I have been searching for a while now, and came to the conclusion it may not be possible to change the validation per value of an attribute.

                  例如我有兩個action"節(jié)點,都有一個type"屬性和兩個元素(name"和description")

                  For example I have two "action" nodes, both with a "type" attribute and two elements ("name" and "description")

                  僅當type"屬性的值為1"時,它有一個帶有abc"子元素的a"元素,當type"屬性為2"時,它有一個帶有的"元素bla"然而"子元素.

                  Only when the value of the "type" attribute is "1" it has an "a" element with "abc" child elements and when the "type" attibute is "2" it has a "bla" element with "yet" child elements.

                  類型 1 的示例

                  <action type="1">
                    <name>yup</name>
                    <description>yyy</description>
                    <a>
                      <abc>false</abc>
                    </a>
                  </action>
                  

                  類型 2 的示例

                  <action type="2">
                    <name>yup2</name>
                    <description>RRR</description>
                    <bla>
                      <yet />
                    </bla>
                  </action>
                  

                  我想創(chuàng)建一個 XSD* 來檢查這兩種類型,這可能嗎?如果是這樣,如何?

                  I want to create one XSD* who whould check both types, is this possible? And if so, how?

                  • 它必須是一個 XSD,因為我想將 XSD 放在 MSSQL 數(shù)據(jù)庫表的 XML 列上.

                  推薦答案

                  您說得對,XSD 1.0 是不可能的,它是 MSSQL 支持的唯一 XSD 版本.你能得到的最好的方法是在 abla 之間創(chuàng)建一個選擇,也許對屬性 type 值等進行一些限制.下面是一個插圖.

                  You are right, it is not possible with XSD 1.0 which is the only XSD version supported by MSSQL. The best you can get is to create a choice between a and bla, maybe place some constraints on attribute type values, etc. Below is an illustration.

                  <?xml version="1.0" encoding="utf-8"?>
                  <!--XML Schema generated by QTAssistant/XML Schema Refactoring (XSR) Module (http://www.paschidev.com)-->
                  <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                    <xs:element name="action">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="name" type="xs:string" />
                          <xs:element name="description" type="xs:string" />
                          <xs:choice>     
                              <xs:element name="a">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="abc" type="xs:boolean" />
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="bla">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="yet" type="xs:anyType" />
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                          </xs:choice>
                        </xs:sequence>
                        <xs:attribute name="type" type="xs:unsignedByte" use="required" />
                      </xs:complexType>
                    </xs:element>
                  </xs:schema>
                  

                  如果您控制 XML 結構,并且仍然想使用某些屬性來控制內容模型,那么 xsi:type 是 XSD 1.0 中唯一的方法.

                  If you control the XML structure, and still want to use some attribute to control the content model, then xsi:type is the only way to do it in XSD 1.0.

                  這篇關于如何創(chuàng)建在屬性值驗證方面不同的 XSD?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現(xiàn)“數(shù)據(jù)類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <i id='K07ip'><tr id='K07ip'><dt id='K07ip'><q id='K07ip'><span id='K07ip'><b id='K07ip'><form id='K07ip'><ins id='K07ip'></ins><ul id='K07ip'></ul><sub id='K07ip'></sub></form><legend id='K07ip'></legend><bdo id='K07ip'><pre id='K07ip'><center id='K07ip'></center></pre></bdo></b><th id='K07ip'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='K07ip'><tfoot id='K07ip'></tfoot><dl id='K07ip'><fieldset id='K07ip'></fieldset></dl></div>
                      <bdo id='K07ip'></bdo><ul id='K07ip'></ul>
                          <tbody id='K07ip'></tbody>
                        • <tfoot id='K07ip'></tfoot>

                            <legend id='K07ip'><style id='K07ip'><dir id='K07ip'><q id='K07ip'></q></dir></style></legend>

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

                            主站蜘蛛池模板: 特黄aaaaaaaaa真人毛片 | 中文字幕在线看片 | 在线观看的av | 亚洲一级大片 | 久久精品一区二区国产 | 求av网址| 色综合88 | 欧美成人一级片 | 黄色一极片 | 一区二区三区四区在线 | 中文字幕国产 | 看国产毛片 | 三上悠亚激情av一区二区三区 | 国产精品一区一区三区 | 国产在线一区二区 | 中文一区二区 | 天堂成人在线 | 在线观看黄色片 | 美女毛片视频 | 欧美日韩国产在线播放 | 黄在线免费观看 | 日韩网站免费观看 | 亚洲aaaaaa | 日韩精品网站 | 久久久国产视频 | 成人国产在线 | 中文字幕在线观看一区二区三区 | 日韩怡红院 | 欧美激情视频一区二区 | 日韩不卡在线观看 | 中文字幕一区在线观看 | 国产视频黄色 | www.一区二区三区 | 国产视频一区二区在线观看 | 日韩午夜在线观看 | www.桃色 | 奇米网888 | 日韩在线免费观看视频 | 长河落日| 免费成人在线看 | 日韩少妇|