![]() In the Xml file comments are added to give information about special elements (lines 3 and 9). ![]() ![]() With this schema as input the procedure creates an Xml-file as follows: It has a vba procedure that takes an xsd file and creates an empty Xml-file. Finally, check out the enclosed workbook. Secondly, you could try one of the online Xsd to Xml Generators. These tools often can do the job for you. The first thing you can do is check your professional Xml editor or your IDE (eg Visual Studio, not an Express edition). But now suppose we have a schema and want to create an example of a well-formed (not necessarily valid) Xml file. When you import a well formed Xml file into Excel, Excel will create (infer) a schema. In this post I describe a tool to create an Xml file from a schema (Xsd) using VBA and the DOM and SOM objects of the Microsoft XML library MSXML version 6.
0 Comments
Leave a Reply. |