标签:c net xml linq-to-xml
有没有人知道一个工具会从真正的XML文档或片段生成LINQ to XML代码?它正在逆向工程生成XML的常见场景.
例如,我想提供一个XML片段作为这样的输入
<root>
<thing>value</thing>
</root>
并让它像这样生成等效的C#LINQ到XML代码片段
var x = new XElement("root",
new XElement("thing", new XText("value"));
);
虽然我正在寻找一个快速,但我确信一些有进取心的人会告诉我自己动手并提供一些很棒的参考代码.
解决方法:
见this工具.
the application supports :
- XDocument
- XDeclaration
- XProcessingInstruction
- XComment
- XNamespace
- XElement
XAttribute
generation of business objects
generation of code Linq To Xml (with variables, in method, extraction of
the code corresponding to the selected
nodes)you can open a Xml file or directly copy to stick xml in the richtextbox
- the editor allows to create Xml documents from scratch or to
add/modify existing Xml documents- the editor has several views which are synchronized (Text, treeview)
- a help with the seizure (auto completion tags and attributes and
checking in the course of the good
formation of xml) for the text view,…- you can also post the data of the nodes selected in a datagridview
- etc
标签:c,net,xml,linq-to-xml 来源: https://codeday.me/bug/20190531/1187901.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。