Creating a specific XML document using namespaces in C#

前端 未结 3 1778
野的像风
野的像风 2020-12-03 08:01

We were given a sample document, and need to be able to reproduce the structure of the document exactly for a vendor. However, I\'m a little lost with how C# handles namesp

3条回答
  •  盖世英雄少女心
    2020-12-03 08:41

    If you are using Visual Studio 2008 in the Samples folder you'll find a sample addin that let's you paste a XML fragment as Linq2XML code.

    Scott Hanselman has a blog post with the details.

    I think this is the quickest way to go from a sample XML doc to C# code that creates it.

提交回复
热议问题