Visual Studio tip: quickly create a sample XML file from an XML Schema (XSD) file
Posted: (EET/GMT+2)
Even though the JSON file format is the "hot" format nowadays, there's still plenty of need for XML related technologies. One common thing in the XML world is the schema file format, or XSD files. I recently needed to create an application to create XML files conforming to an XSD schema, so my question was: what is the fastest way to create a sample XML document based on an XSD schema file?
Visual Studio has good support for XML files, and thus it is no surprise that there is a command called "Generate Sample XML" from an XSD file. This command can be found from the XML Schema Explorer window, which in turn becomes available in the View menu (top menu bar) when you open an XSD file in Visual Studio.
For more details, check out the Visual Studio documentation page.