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

    1. <legend id='js1vI'><style id='js1vI'><dir id='js1vI'><q id='js1vI'></q></dir></style></legend>

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

      <tfoot id='js1vI'></tfoot>

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

        XSD 代碼生成器的比較

        Comparison of XSD Code Generators(XSD 代碼生成器的比較)
      1. <tfoot id='qzOcC'></tfoot>

          <tbody id='qzOcC'></tbody>
        • <bdo id='qzOcC'></bdo><ul id='qzOcC'></ul>

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

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

                  <legend id='qzOcC'><style id='qzOcC'><dir id='qzOcC'><q id='qzOcC'></q></dir></style></legend>
                  本文介紹了XSD 代碼生成器的比較的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在研究從 xsd 模式文件生成代碼.我的要求:

                  I'm doing some research in code generation from xsd schema files. My requirements:

                  • 必須生成 C# 2.0(或更高版本)代碼,并在需要時使用泛型集合.
                  • 必須從 xsd 評論中生成評論
                  • 必須生成完全可序列化的代碼.
                  • 從具有相同包含的多個 xsd 生成時,應(yīng)該能夠生成可重復(fù)使用的基本類型.

                  (另請參閱我的其他問題:如何從具有常見包含的 xsd 生成多個類? 和 如何從 wsdl 中的 xs:documentation 標(biāo)簽生成注釋?

                  (see also my other questions: How can I generate multiple classes from xsd’s with common includes? and How can I generate comments from xs:documentation tags in a wsdl?

                  我找到了以下選項:

                  1. 使用 xsd.exe(隨 SDK 和 Visual Studio 提供)
                  2. XSDCodeGen 來自 Daniel Cazzulino 李>
                  3. Xsd2Code
                  4. CodeXS
                  5. XsdObjectGen 由微軟提供
                  6. XSDClassGen(似乎在行動中缺失)
                  1. Use xsd.exe (supplied with the SDK and Visual Studio)
                  2. XSDCodeGen from Daniel Cazzulino
                  3. Xsd2Code
                  4. CodeXS
                  5. XsdObjectGen by Microsoft
                  6. XSDClassGen (Seems to be missing in action)

                  我錯過了嗎?因為 (1)、(2) 和 (5) 不生成 2.0 代碼,而且我在序列化 (3) 中的代碼時遇到問題.生成代碼的時候用什么?

                  Did I miss any? Because (1), (2) and (5) do not generate 2.0 code, and I have problems with serializing code from (3). What do you use when generating code?

                  推薦答案

                  我相信 XSD2Code 是最好的工具目前可用(2011 年).

                  I believe XSD2Code is the best tool currently available (in 2011).

                  我最近在分析可用工具時經(jīng)歷了相同的過程,所以我想我會提供與 VS2010 相關(guān)的更新答案.

                  I recently went through the same process at work of analysing the available tools out there so i thought i would provide an updated answer that relates to VS2010.

                  我們的主要驅(qū)動因素是 xsd.exe 不會從 XSD 注釋生成 XML 文檔,這是我們想要的,因為我們有數(shù)百個類型定義.我嘗試了上面列出的所有工具以及其他工具,但大多數(shù)工具要么已棄用、未維護或無法匹配 VS2010 中可用的 xsd.exe 的當(dāng)前功能.

                  Our main driver was that xsd.exe does not generate XML doc from the XSD annotations, which we wanted as we have hundreds of type definitions. I tried all the tools listed above as well as others and most were either deprecated, unmaintained or unable to match the current functionality of xsd.exe available in VS2010.

                  Xsd2Code 然而是一個極好的工具,并且似乎得到了積極的維護.它提供了上面列出的所有功能以及更多功能 - CodePlex 頁面還提供了各種選項如何影響輸出的很好示例.

                  Xsd2Code however is a superb tool and seems to be actively maintained. It provides all the functionality that was listed above and a lot more - the CodePlex page also has great examples of how the various options affect output.

                  它還具有緊密的 VS 集成,包括上下文菜單集成和自定義構(gòu)建工具(這意味著如果您在項目中引用 XSD 并指定自定義工具,它將在您更新 XSD 時自動更新代碼).總而言之,為我們節(jié)省了很多工作.

                  It also has tight VS integration, including context menu integration and a custom build tool (which means that if you reference the XSDs in your project and specify the custom tool, it will automatically update the code as you update the XSD). All in all saved us a lot of work.

                  我看過的其他工具的快速總結(jié):

                  A quick summary of the other tools i looked at:

                  • Dingo - 似乎更符合 Java
                  • XSDCodeGen - 更多關(guān)于如何編寫自定義構(gòu)建工具的演示
                  • CodeXS - 相當(dāng)不錯的工具,但集成度低、功能少且不再維護
                  • XSDObjectGen - 不再維護,功能比當(dāng)前 xsd.exe 少
                  • XSDClassGen - 找不到它
                  • OXM 庫 - 推薦看看這個項目,維護和強大的功能
                  • LINQ to XSD - 非常項目,但不是我想要的對于
                  • Dingo - Seems to be more aligned to Java
                  • XSDCodeGen - More of a demo on how to write a custom build tool
                  • CodeXS - Quite a good tool, but less integration, features and no longer maintained
                  • XSDObjectGen - No longer maintained, less functionality than current xsd.exe
                  • XSDClassGen - Could not locate it
                  • OXM Library - Recommend looking at this project, maintained and great functionality
                  • LINQ to XSD - Very cool project, but not what i was looking for

                  附錄:如果您決定繼續(xù)使用 XSD2Code,那么我發(fā)現(xiàn)使用命令行工具會遇到許多問題.特別是,參數(shù)處理存在一些錯誤,這些錯誤需要一些參數(shù)按特定順序以及一些未記錄的依賴項(例如 - 自動參數(shù)和 .NET 版本是特定于順序和依賴的).以下是我使用 XSD2Code 生成代碼然后清理輸出的步驟 - 根據(jù)需要獲取適用于您的位:

                  Addendum: If you do decided to go ahead with XSD2Code, there are a number of issues i found working with the command-line tool. In particular, there are some bugs with the argument processing that require some arguments to be in a certain order as well as some undocumented dependencies (eg - automatic parameters & .NET version are order specific and dependent). The following are the steps i used to generate the code using XSD2Code and then cleanup the output - take the bits that apply to you as necessary:

                  運行以下批處理文件以生成初始代碼,將路徑更改為正確的位置:

                  Run the following batch file to generate the initial code, changing the paths to the correct locations:

                  @echo off
                  
                  set XsdPath=C:schemas
                  set OutPath=%XsdPath%Code
                  set ExePath=C:Progra~1Xsd2Code
                  set Namespace=InsertNamespaceHere
                  
                  echo.Starting processing XSD files ...
                  for /f %%a IN ('dir %XsdPath%*.xsd /a-d /b /s') do call:ProcessXsd %%a
                  
                  echo.Finished processing XSD files ...
                  echo.&pause&
                  goto:eof
                  
                  :ProcessXsd
                  %ExePath%Xsd2Code %~1 %Namespace% %XsdPath%Code\%~n1%.cs /pl Net35 /if- /dc /sc /eit
                  echo.Processed %~n1
                  goto:eof
                  

                  根據(jù)需要執(zhí)行以下步驟來整理生成的代碼:

                  Perform the following steps to tidy up the generated code, as necessary:

                  1. 正則表達式替換 - 當(dāng)前項目、大小寫、整個單詞 - [System.Runtime.Serialization.DataContractAttribute(Name:b*=:b*:q,:bNamespace:b=:b*{:q})] 與 [DataContract(Namespace = 1)]
                  2. [DataMember]
                  3. 替換 - 當(dāng)前項目、案例、整個單詞 - [System.Runtime.Serialization.DataMemberAttribute()]
                  4. 正則表達式替換 - 當(dāng)前項目、大小寫、整個單詞 - System.Nullable<{:w}>1?
                  5. 正則表達式替換 - 打開文檔、大小寫、整個單詞 - {:w}TYPE1
                  6. DateTime 替換 - 打開文檔、大小寫、整個單詞 - System.DateTime,然后添加缺少的 using 語句
                  7. 替換 - 打開文檔、大小寫、整個單詞 - [System.Xml.Serialization.XmlIgnoreAttribute()][XmlIgnore]
                  8. 替換 - 當(dāng)前項目 - System.Xml.Serialization.XmlArrayAttributeXmlArray
                  9. 替換 - 當(dāng)前項目 - System.Xml.Serialization.XmlArrayItemAttributeXmlArrayItem
                  10. 正則表達式替換 - 當(dāng)前項目 - ,[:Wh]+///<remarks/>,
                  1. Regex replace - current project, case, whole word - [System.Runtime.Serialization.DataContractAttribute(Name:b*=:b*:q,:bNamespace:b=:b*{:q})] with [DataContract(Namespace = 1)]
                  2. Replace - current project, case, whole word - [System.Runtime.Serialization.DataMemberAttribute()] with [DataMember]
                  3. Regex replace - current project, case, whole word - System.Nullable<{:w}> with 1?
                  4. Regex replace - open documents, case, whole word - {:w}TYPE with 1
                  5. Replace - open documents, case, whole word - System.DateTime with DateTime, then add missing using statements
                  6. Replace - open documents, case, whole word - [System.Xml.Serialization.XmlIgnoreAttribute()] with [XmlIgnore]
                  7. Replace - current project - System.Xml.Serialization.XmlArrayAttribute with XmlArray
                  8. Replace - current project - System.Xml.Serialization.XmlArrayItemAttribute with XmlArrayItem
                  9. Regex replace - current project - ,[:Wh]+/// <remarks/> with ,

                  希望對某人有所幫助.

                  這篇關(guān)于XSD 代碼生成器的比較的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)
                    <i id='khpXQ'><tr id='khpXQ'><dt id='khpXQ'><q id='khpXQ'><span id='khpXQ'><b id='khpXQ'><form id='khpXQ'><ins id='khpXQ'></ins><ul id='khpXQ'></ul><sub id='khpXQ'></sub></form><legend id='khpXQ'></legend><bdo id='khpXQ'><pre id='khpXQ'><center id='khpXQ'></center></pre></bdo></b><th id='khpXQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='khpXQ'><tfoot id='khpXQ'></tfoot><dl id='khpXQ'><fieldset id='khpXQ'></fieldset></dl></div>

                      • <bdo id='khpXQ'></bdo><ul id='khpXQ'></ul>
                        • <tfoot id='khpXQ'></tfoot>

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

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

                            <tbody id='khpXQ'></tbody>
                            主站蜘蛛池模板: 日本一区二区三区在线观看 | 久久国产精品视频免费看 | 欧美区日韩区 | 国产精品国产三级国产aⅴ原创 | 国产激情视频 | 中文字幕在线观看第一页 | 成人在线精品视频 | 精品一区二区不卡 | 精品三级| 97国产一区二区 | 视频一区在线播放 | 欧美精品成人 | 丝袜一区二区三区 | 久久婷婷色 | 国产免费a视频 | 在线观看中文字幕 | 最新中文字幕第一页视频 | 日韩一区和二区 | 久久99精品久久久久久秒播九色 | 午夜免费网站 | 国产精品96久久久久久 | 国产成人精品综合 | 欧美日韩电影免费观看 | 欧美激情精品久久久久久免费 | 日日碰狠狠躁久久躁96avv | 91视频www.| 成人国产精品免费观看 | 亚洲精品视频免费观看 | 欧美精品一区在线发布 | 国产精品一区二区三区四区 | 黄色成人国产 | 久草新视频 | 干干干日日日 | 在线一区视频 | 午夜视频免费在线观看 | 日日操夜夜操视频 | 国产精品久久久久久久久免费丝袜 | 日韩中文字幕在线免费 | 国产亚洲欧美在线 | 欧美精品久久 | 久草免费在线视频 |