HomeGuidesRecipesAPI
HomeGuidesAPILog In
Guides
These docs are for v10. Click to read the latest docs for v31.

Template - XSD

One of the recent enhancements is the facility to generate XML file directly from an XSD output. Previously, XML files were to be created manually. The introduction of this feature has reduced the workload for the users.

📘

Note:

An.xsd file must exist, in order to generate the XML file.

How to create a new XML file from and .xsd

  1. In the “New Infiniti Project” window, click on “use an existing document” under the “Template Document” section.
453
  1. To browse the .xsd file, select the “XML Schema (*.xsd)” from the file format first and then navigate to the .xsd file and open it.
661

Adding multiple files

It is possible to add multiple .xsd and word files to generate multiple XML and word outputs. There are two ways to add files.

  1. Click on Action and then add a template
508

Or,
2. Go to Placeholders, right click and click on Add Template.

475

What is noticeable on this new feature is that after adding the .xsd, the placeholders in the file can automatically be seen under the ‘’Placeholder’’ tab on the design interface. This is because it reads the .xsd file and registers the nodes that can be filled in.

467

How the XML looks on document generation

  1. In Project design, two questions have been added with their respective placeholders assigned.
452
  1. The above design produces the following output in Produce.
432

📘

Note:

The user has entered ‘001’ for ‘Number of the country’ and ‘Australia’ for ‘Whats the name of the country?’. These answers have been mapped to their respective .xsd nodes.

  1. After the form has been submitted, the following XML file is generated:
<?xml version="1.0" encoding="UTF-8"?>
<countries>
	 <country id="001">
   			<countryname>Australia</countryname>
        <price>
   </country>
</countries>