{"id":65,"date":"2024-12-18T19:44:44","date_gmt":"2024-12-18T18:44:44","guid":{"rendered":"https:\/\/xmlable.com\/?page_id=65"},"modified":"2024-12-18T21:27:51","modified_gmt":"2024-12-18T20:27:51","slug":"generator","status":"publish","type":"page","link":"https:\/\/xmlable.com\/generator\/","title":{"rendered":"XML generator"},"content":{"rendered":"\n<style>\n\n\t.xml-generator-download-link {\tfloat:right;margin-right: 20px;\tcursor:pointer; font-weight: bold; }\n\t.xml-generator-download-name, .xml-generator-download-name-all {float:left;margin-left: 20px;\tcursor:pointer;\tfont-weight: bold; }\n\t.xml-generator-download-name-all, a.xml-generator-download-name-all { color: red; font-weight: bold; }\n\t.xml-generator-download-clear { clear:both; }\n\t.editor-msg{min-height:34px;}\n\t.collapsible {\n\t  background-color: #eee;\n\t  color: black;\n\t  cursor: pointer;\n\t  padding: 11px;\n\t  width: 100%;\n\t  box-sizing: border-box;\n\t  border: none;\n\t  text-align: left;\n\t  outline: none;\n\t  font-size: 15px;\n\t}\n\t.collapsible:after {\n\t\tcontent: '\\002B'; \n\t\tcolor: black;\n\t\tfont-weight: bold;\n\t\tfloat: right;\n\t\tmargin-left: 5px;\n\t}\n\t.collapsible-active, .collapsible:hover {\n\t  background-color: rgb(105, 105, 105);\n\t}\n\t.collapsible-content{\n\t  padding: 0 10px;\n\t  display: none;\n\t  overflow: hidden;\n\t  background-color: #f1f1f1;\n\t}\n\t.xml-generator-quick-section {\n\t\tbackground-color:#4DAF52;\n\t\tmargin:8px auto 0px auto;\n\t\tcolor:white;\n\t\tfont-weight: bold;\n\t\ttext-align:center;\n\t\twidth:90%;\n\t\tborder-radius: 2px 2px 0px 0px;\n\t}\n\t.xml-generator-quick-section:hover {\n\t\tbackground-color:#4DAF52;\n\t}\n\t.xml-generator-quick-section:after {\n\t\tcolor:white;\n\t}\n\t.xml-generator-quick-section:hover::after {\n\t\tcolor:white;\n\t}\n\t.xml-generator-quick-content {\n\t\twidth:90%;\n\t\tmargin:auto;\n\t}\n\t.xml-generator-quick-impair {\n\t\tbackground-color:#D0F5A9;\n\t}\n\ttd.xml-generator-quick-first{\n\t\tfont-weight:bold;\n\t\tfont-size: 15px;\n\t\twidth: 100%;\n\t}\n\ttd.xml-generator-quick-second{\n\t\ttext-align: left;\n\t\tfont-size: 14px;\n\t\twidth: 100%;\n\t}\n\t.table { width: 100%; }\n\t\n\t.row-container-ad-right { width: 65%; }\n.hidden {  display:none; }\n.editor-container {border: 1px solid gray;}\n.editor-valid, .editor-inprogress {\n    color: green;\n    padding: 8px;\n    background-color: #d0f5a9;\n    margin: 10px 0;\n}\n.editor-error {\n    color: red;\n    padding: 8px;\n    background-color: #f6cece;\n    margin: 10px 0;\n}\n.editor-valid , .editor-error, .editor-inprogress  {\n    width: 99%;\n    margin-right: auto;\n    margin-left: auto;\n}\n.right {float:right;}\n.column-double {width:46%; margin-left:2%; display:inline-block; }\n.container-center {text-align: center;}\n.span {margin-left: 6px; }\ninput[type=\"button\"] {\nmargin-top: 6px;\nmargin-bottom: 6px;\n}\nh2 {\n    margin-top: 15px;\n}\ninput[type=\"text\"] {\nmax-width: 300px;\n}\n<\/style>\n\n\n\n<div class=\"flex-container\">\n\t<div class=\"body\">\n\t\t<div>\n\t\t\t<input type=\"file\" id=\"file-input-text\" class=\"hidden\"  \/>\n\t\t\t<input type=\"file\" id=\"file-input-text-2\" class=\"hidden\"  \/>\n\t\t<\/div>\n\t\t<div id=\"dropZone\" class=\"column-double span\">\n\t\t\t<div class=\"container-center\"><span class=\"editor-title\">Your XML template<\/span><\/div>\n\t\t\t<input type=\"button\" class=\"action-button-editor right span\" style=\"background-color: #478778;\" id=\"generate\" value=\"Generate\"  \/>\n\t\t\t<input type=\"button\" class=\"action-button-editor right span\" id=\"generate\" value=\"View tags\" onclick=\"document.getElementById('templates-availability').scrollIntoView({behavior: 'smooth',block: 'start'});\" \/>\n\n\t\t\t<div class=\"row-container editor-container\" style=\"clear:both;\">\n\t\t\t\t<textarea id=\"editor-container-template\" class=\"editor\">&lt;root&gt;\n  &lt;person\n  firstname=&quot;{{firstname()}}&quot;\n  lastname=&quot;{{lastname()}}&quot;\n  city=&quot;{{city()}}&quot;\n  country=&quot;{{country()}}&quot;\n  firstname2=&quot;{{firstname(1)}}&quot;\n  lastname2=&quot;{{lastname(1)}}&quot;\n  email=&quot;{{firstname(1)}}.{{lastname(1)}}@yopmail.com&quot;\n  \/&gt;\n  &lt;random&gt;{{random(1, 100)}}&lt;\/random&gt;\n  &lt;random_float&gt;{{randomFloat(1, 100, 3)}}&lt;\/random_float&gt;\n  &lt;bool&gt;{{randomBool()}}&lt;\/bool&gt;\n  &lt;date&gt;{{date(&apos;Y-m-d&apos;, &apos;1980-01-01&apos;, &apos;2000-01-15&apos;)}}&lt;\/date&gt;\n  &lt;regEx&gt;{{regex(\/hello+ (world|to you)\/)}}&lt;\/regEx&gt;\n  &lt;enum&gt;{{choice(&apos;xml&apos;, &apos;generator&apos;, &apos;online&apos;)}}&lt;\/enum&gt;\n  {{repeat(5, &quot;&lt;elt&gt;{{firstname()}}&lt;\/elt&gt;&quot;)}}  \n  &lt;{{firstname(1)}}&gt;\n    &lt;age&gt;{{random(18, 100)}}&lt;\/age&gt;\n  &lt;\/{{firstname(1)}}&gt;\n&lt;\/root&gt;\n<\/textarea>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div id=\"dropZone2\" class=\"column-double span\">\n\t\t\t<div class=\"container-center\"><span class=\"editor-title\">XML generated<\/span><\/div>\n\t\t\t<input type=\"button\" class=\"action-button-editor right span\" value=\"Download\"  id=\"download\" \/>\n\t\t\t<input type=\"button\" class=\"action-button-editor right span\" value=\"Copy to clipboard\"  id=\"copy\"\/>\t\n\t\t\t<div class=\"row-container editor-container\" style=\"clear:both;\">\n\t\t\t\t<textarea id=\"editor-container-result\" class=\"editor\"><\/textarea>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"editor-msg\">\n\t\t\t<div id=\"editor-error\" style=\"display:none;\" class=\"editor-error\"><\/div>\n\t\t<\/div>\n\t\t<div class=\"container-center\" style=\"clear:both\">\n\t\t\t<h2>Options for exporting generated XML files<\/h2>\n\t\t\t<label class=\"span\">Number of File to Generate: <\/label> \n\t\t\t<input type=\"number\" class=\"span select-action\" id=\"numberOfFile\" value=\"5\" \/>\n\t\t\t<br\/>\n\t\t\t<br\/><label class=\"span\">Filename<\/label>\n\t\t\t<input type=\"text\" class=\"span select-action\" id=\"filename\" value=\"myXMLFile{{index()}}.xml\" \/>\n\t\t<\/div>\n\t\t<br\/>\n\t\t<div id=\"container-result\" class=\"container-action container-result\" style=\"display:none;\">\n\t\t<\/div>\n\t\t<br\/>\n\t<\/div>\n<\/div>\n\n\n\n<style>\n.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5);-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #616161;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta{color:#555}.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error{color:red}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:0 0}\n<\/style>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to generate xml file<\/strong><\/h2>\n\n\n\n<p>Here are the steps to generate XML files:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configure your template with the desired tags\/parameters.<\/li>\n\n\n\n<li>Select the number of XML files to generate from the options.<\/li>\n\n\n\n<li>Click the \"Generate\" button.<\/li>\n\n\n\n<li>Once generated, you can download a zip archive containing all your XML files.<br>You can also download each file individually (or copy-paste each XML file one by one).<\/li>\n<\/ul>\n\n\n\n<div id=\"templates-availability\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><strong>Tags available to create the XML template<\/strong><\/strong><\/h2>\n\n\n\n<div class=\"\">\n\t<div id=\"\" class=\"box-content\">\n\t\t<div id=\"\">\n\t\t\t<div style=\"padding-bottom:8px;;overflow-y:scroll;font-size: .8em;\">\t\t\t\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">firstname<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tfirstname()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random firstname.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tfirstname(id)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tBy putting an identifier as a parameter, this makes it possible to use the same random value generated in several places in the xml file.\n\t\t\t\t\t\t\t\t\t<br\/> Example: &lt;{{firstname(1)}}&gt;...&lt;\/{{firstname(1)}}&gt;\n\t\t\t\t\t\t\t\t\t<br\/> Returns: &lt;Andeee&gt;...&lt;\/Andeee&gt;\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">lastname<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tlastname()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random lastname.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tlastname(id)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tBy putting an identifier as a parameter, this makes it possible to use the same random value generated in several places in the xml file.\n\t\t\t\t\t\t\t\t\t<br\/> Example: &lt;{{lastname(1)}}&gt;...&lt;\/{{lastname(1)}}&gt;\n\t\t\t\t\t\t\t\t\t<br\/> Returns: &lt;Allare&gt;...&lt;\/Allare&gt;\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">country<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcountry()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random country.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcountry(id)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tBy putting an identifier as a parameter, this makes it possible to use the same random value generated in several places in the xml file.\n\t\t\t\t\t\t\t\t\t<br\/> Example: &lt;{{country(1)}}&gt;...&lt;\/{{country(1)}}&gt;\n\t\t\t\t\t\t\t\t\t<br\/> Returns: &lt;Japan&gt;...&lt;\/Japan&gt;\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">countryCode<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcountryCode()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random country code (two characters).\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcountryCode(id)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tBy putting an identifier as a parameter, this makes it possible to use the same random value generated in several places in the xml file.\n\t\t\t\t\t\t\t\t\t<br\/> Example: &lt;{{countryCode(1)}}&gt;...&lt;\/{{countryCode(1)}}&gt;\n\t\t\t\t\t\t\t\t\t<br\/> Returns: &lt;CN&gt;...&lt;\/CN&gt;\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">city<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcity()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random city.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tcity(id)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tBy putting an identifier as a parameter, this makes it possible to use the same random value generated in several places in the xml file.\n\t\t\t\t\t\t\t\t\t<br\/> Example: &lt;{{city(1)}}&gt;...&lt;\/{{city(1)}}&gt;\n\t\t\t\t\t\t\t\t\t<br\/> Returns: &lt;Lille&gt;...&lt;\/Lille&gt;\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">choice<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tchoice('string1', 'string2', 'string3', ...)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns one of the strings passed in parameter.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">date<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tdate(format, from, to)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tReturns a random date.\n\t\t\t\t\t\t\t\t\t<br\/>From and To are optional.\n\t\t\t\t\t\t\t\t\t<br\/>From equals 1900-01-01 by default.\n\t\t\t\t\t\t\t\t\t<br\/>To equals 2100-01-01 by default.\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 1: GMT date format\n\t\t\t\t\t\t\t\t\t<br\/>date('Y-m-d H:i:s') returns '2001-03-10 17:16:18'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 2: \n\t\t\t\t\t\t\t\t\t<br\/>date('F j, Y, g:i a') returns 'March 10, 2001, 5:16 pm'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 3: \n\t\t\t\t\t\t\t\t\t<br\/>date('m.d.y') returns '03.10.01'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 4: \n\t\t\t\t\t\t\t\t\t<br\/>date('j, n, Y') returns '10, 3, 2001'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 5: \n\t\t\t\t\t\t\t\t\t<br\/>date('Ymd') returns '20010310'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example 6: \n\t\t\t\t\t\t\t\t\t<br\/>date('D M j G:i:s T Y') returns 'Sat Mar 10 17:16:18 MST 2001'\n\t\t\t\t\t\t\t\t\t<br\/><br\/>For more details: <a href=\"https:\/\/www.php.net\/manual\/en\/function.date.php\">https:\/\/www.php.net\/manual\/en\/function.date.php<\/a> \n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">Regular expression<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tregex(reguarExpression)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\tReturns a random string that matches a given RegExp Javascript object.\n\t\t\t\t\t\t\t\t\t<br\/><br\/>Example: \n\t\t\t\t\t\t\t\t\t<br\/>regex(\/hello+ (world|to you)\/) can return 'helloooooooo world' or helloo to you'\n\t\t\t\t\t\t\t\t\t<br\/>It uses <a href=\"https:\/\/github.com\/fent\/randexp.js\">randexp.js<\/a> (MIT License)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">random<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\trandom(min, max)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random integer.\n\t\t\t\t\t\t\t\t\t\t<br\/>Min and max are optional.\n\t\t\t\t\t\t\t\t\t\t<br\/>Min equals 0 by default.\n\t\t\t\t\t\t\t\t\t\t<br\/>Max equals 2^53 -1 by default.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">randomFloat<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\trandomFloat(min, max, scale)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random float.\n\t\t\t\t\t\t\t\t\t\t<br\/>Min, max and scale are optional.\n\t\t\t\t\t\t\t\t\t\t<br\/>Min equals 0 by default.\n\t\t\t\t\t\t\t\t\t\t<br\/>Max equals 2^53 -1 by default.\n\t\t\t\t\t\t\t\t\t\t<br\/>Scale equals 2 by default.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">randomBool<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\trandomBool()\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tReturns a random boolean.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">repeat<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\trepeat(numberOfTime, elementToRepeat)\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tDuplicate an element, and return the result in an array.\n\t\t\t\t\t\t\t\t\t\t<br\/>In this example, it generates an array containing 5 first names:\n\t\t\t\t\t\t\t\t\t\t<br\/>\n\t\t\t\t\t\t\t\t\t\t<br\/>\trepeat(5, firstname())\n\t\t\t\t\t\t\t\t\t\t<br\/><br\/>\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"collapsible xml-generator-quick-section\">expression<\/div>\n\t\t\t\t<div class=\"collapsible-content xml-generator-quick-content\">\n\t\t\t\t\t<table class=\"table\">\n\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-first\">\n\t\t\t\t\t\t\t\t\tYou can put javascript code directly between the braces. And the value of this expression is returned.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td class=\"xml-generator-quick-second\">\n\t\t\t\t\t\t\t\t\t\tExample:\n\t\t\t\t\t\t\t\t\t\t{{1 +  2}}\n\t\t\t\t\t\t\t\t\t\t<br\/> Returns 3.\n\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t\t\t<\/table>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why generate XML files?<\/strong><\/h2>\n\n\n\n<p><br>The XML format remains widely used across many fields due to its flexibility and compatibility. Generating a dataset in XML can be especially useful for conducting various tests, such as performance, load, or even functional tests. If you\u2019ve landed on this page, it\u2019s likely because this topic resonates with you directly! <\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>XML generator online<\/strong><\/h2>\n\n\n\n<p>This tool is an online XML generator, designed to help you <strong>create multiple XML files<\/strong> quickly and effortlessly!<\/p>\n\n\n\n<p>You have access to a wide range of tags to use in your template, including names, first names, dates, strings matching specific regex patterns, and more. Whether you're tech-savvy or a beginner, you'll find all the essentials you need!<\/p>\n\n\n\n<p><strong>Creating an XML dataset<\/strong> has never been so simple and fast!<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your XML template &lt;root&gt; &lt;person firstname=&quot;{{firstname()}}&quot; lastname=&quot;{{lastname()}}&quot; city=&quot;{{city()}}&quot; country=&quot;{{country()}}&quot; firstname2=&quot;{{firstname(1)}}&quot; lastname2=&quot;{{lastname(1)}}&quot; email=&quot;{{firstname(1)}}.{{lastname(1)}}@yopmail.com&quot; \/&gt; &lt;random&gt;{{random(1, 100)}}&lt;\/random&gt; &lt;random_float&gt;{{randomFloat(1, 100, 3)}}&lt;\/random_float&gt; &lt;bool&gt;{{randomBool()}}&lt;\/bool&gt; &lt;date&gt;{{date(&apos;Y-m-d&apos;, &apos;1980-01-01&apos;, &apos;2000-01-15&apos;)}}&lt;\/date&gt; &lt;regEx&gt;{{regex(\/hello+ (world|to you)\/)}}&lt;\/regEx&gt; &lt;enum&gt;{{choice(&apos;xml&apos;, &apos;generator&apos;, &apos;online&apos;)}}&lt;\/enum&gt; {{repeat(5, &quot;&lt;elt&gt;{{firstname()}}&lt;\/elt&gt;&quot;)}} &lt;{{firstname(1)}}&gt; &lt;age&gt;{{random(18, 100)}}&lt;\/age&gt; &lt;\/{{firstname(1)}}&gt; &lt;\/root&gt; XML generated Options for exporting<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-65","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/pages\/65"}],"collection":[{"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":16,"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/pages\/65\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/pages\/65\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/xmlable.com\/wp-json\/wp\/v2\/media?parent=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}