This tool allows to generate random XML files from a template directly in the browser, with no installation required.
You can generate multiple XML files at the same time. You can download them in a zip file or one at a time.
You have the possibility to generate complex XML data, with a tree structure on several levels, you can also generate random attributes / tags. Few free tools offer these features.
No limit is implemented on the number of XML files you can generate.
We have other data generators:
Short user guide:
Fill in the editor "Your XML template" and click on the "Generate" button.
The "XML generated" editor will contain the result.
The XML editor contains only the first XML file generated so that you can confirm that it corresponds to what you want.
You can dowload the other XML files below the editor.
You can also download a ZIP file containing all the generated XML files.
You can see the user guide to help you to use this XML Generator Online.
How to generate random XML data:
Type in the editor "Your XML template" your template. On the right side of the webpage, you have an "Available tags" section which shows you the available tags that you can use.
You can use tag in: attribute name, attribute value, tag name, ... where you want.
The tag must be enclosed in double curly brackets.
Example:
<person name="{{lastname()}}" />
Below the editors, you can indicate the number of xml files that you want to generate.
Click on the "generate" button to generate your random data.
The editor "XML generated" only contains the first XML file.
The buttons "copy to clipboard" and "download" allows you to retrieve the first XML file.
All the generated xml files are available below the editors.
In recent years, the XML format has been used a little less, but its use is still important compared to other new data formats (yaml, ...). We still use XML data quite often, so it can be useful to generate random XML data. When we do tests we often need data to carry them out. This can be customer data, soap webservice payloads, ...
Creating relevant data, which approximates real data, can be really tedious and time-consuming. Indeed, it is difficult to produce really varied data by hand, and there is therefore the risk of missing anomalies because the data was too similar.
This random test data generator can meet these needs, in minutes you can generate random XML data. You can generate realistic datasets without having to have advanced skills. You can create data with real first names, surnames, cities, ...
It is not allowed to use privacy sensitive personal data for testing (GDPR, PCI, HIPAA, ...), you can overcome that with this test data generator.
For developers, it is possible to execute javascript code. The expression enclosed in the braces {{ my expression }} is executed, and its value is used to generate the XML stream. It is thus possible to generate complex data by using all the possibilities offered by javascript. You can thus generate tailor-made data that corresponds to your needs.
No limit is implemented on the amount of data you can generate with this tool. The only constraints are based on your computer, your browser and the code of this tool (which is not perfect in terms of resources...). On my workstation, I generate more than 10,000 XML files in less than 10 seconds.
This tool is recent, it may lack a bit of functionality. If you think of new tags relevant to the greatest number, do not hesitate to make a request in the comments. When I have time, I will look at the relevance of making the evolution or not.
Comments