Photo by Chris Ried on Unsplash
Hello everyone, hope you are doing fine amidst all the chaos that is happening around you.
You should check out this Python script if you are constantly creating a CSharp class and properties from an XML file.
The above code is simple, you are just reading the XML file and then creating strings to add to your .cs file.
This trick can be used to make any programming language file you wish to create.
The XML input file and the output are attached below.
XML file for the above example
The output of the above Python script