Generate C# class from XML

后端 未结 8 1734
青春惊慌失措
青春惊慌失措 2020-11-22 05:19

Can I generate a C# class from an XML file?

8条回答
  •  情深已故
    2020-11-22 05:38

    I realise that this is a rather old post and you have probably moved on.

    But I had the same problem as you so I decided to write my own program.

    The problem with the "xml -> xsd -> classes" route for me was that it just generated a lump of code that was completely unmaintainable and I ended up turfing it.

    It is in no way elegant but it did the job for me.

    You can get it here: Please make suggestions if you like it.

    SimpleXmlToCode

提交回复
热议问题