久久久久久久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賬號..

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

                  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 結(jié)構(gòu),并且仍然想使用某些屬性來控制內(nèi)容模型,那么 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.

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

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

                  相關(guā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ù)類型轉(zhuǎn)換錯誤?使用 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'>

                            主站蜘蛛池模板: 欧美第一页 | 久草在线视频中文 | 亚洲精品在线视频 | av网站免费看 | 日韩在线观看网站 | 国产精品久久二区 | 欧美日韩一 | 九九热在线观看 | 成人午夜精品 | 国产精品国产三级国产aⅴ原创 | 久久久久一区二区三区 | 91aiai | 中文区中文字幕免费看 | 久久久久国产精品 | 亚洲视频 欧美视频 | 日韩在线国产精品 | 国产91精品久久久久久久网曝门 | 日韩在线大片 | 日日干天天操 | 夜夜夜久久 | 日韩久草 | 亚洲网址在线观看 | 国产黄色网址在线观看 | 欧美一级欧美三级在线观看 | 成人免费视频 | 美日韩一区二区 | 久久国产精品免费一区二区三区 | 婷婷久久精品一区二区 | 久久精品视频在线播放 | 久久国产精品免费一区二区三区 | 99精品一区二区 | 91精品国产91久久久久久密臀 | 亚洲一区二区免费视频 | 亚洲精品电影网在线观看 | 午夜精品网站 | 亚洲一级黄色 | 日韩视频一区二区三区 | 高清国产午夜精品久久久久久 | 免费精品在线视频 | www.亚洲.com| 欧美日韩久久 |