XML to Doc fill

XML to DOC -Convert XML to PDF and Word documents

XML to Doc Samples

Below are the XML file for population and the sample template containing dynamic text, tables, and hyperlinks. You can also download them from here.



In the XML file, notice matching XML nodes with dynamic tag names of the template. For example, "Enter_Name" is present in both XML and template. Though you can upload any XML format, having matching XML element allows you to skip the mapping screen (2nd step of the population). Thus this saves time if you're planning to populate the same XML format multiple times into your template.

Dynamic Tags

The template has text, table and hyperlink dynamic fields

Text : {Enter_Name} and {Enter_Email} are dynamic text fields. EDocGen treats text placed in "{}" as dynamic text field.

Table : The Job table has Role, Company and Address columns. Table starts with {#tablename} and ends with {/tablename}. So you notice {#Job} in the first column and {/Job} in the last column. Column values are text fields. EDocGen loops over the XML to populate two rows into the Job table.

Hyperlink : The dynamic data passed to hyperlink tag would be displayed as a link in blue color. You can use it display a URL or text that links to another URL. EDocGen treats text placed in "{~}" as hyperlink. In the template {~linkname}{~Enter_Name} are dynamic hyperlinks.

Show text based on Conditions (If-Else): If the Enter_Name value is "Steve", we're showing some text. Similarly, you can also test for boolean for displaying certain content.

EDocGen logo

A few points on adding tags.

  1. Make sure you close the tags properly and don't leave any space between dynamic field name and tags
  2. Avoid special characters and spaces in field naming
  3. If a field appears at multiple places in the document, use the same dynamic field name throughout the document.

XML file Population

After adding tags to your template, upload it into EDocGen. Hover-over document template and click “Create Document” action button. This opens a side-screen and in the drop-down select “generate documents from XML".

XML format template

Upload XML and map XML elements tags to template's dynamic fields. If you've large number of dynamic fields, mapping them for every population is time consuming. If XML tags names match with the template's dynamic fields, EDocGen automatically maps them. This allows you to skip the mapping screen during documents creation.

Mapping screen

Clicking on the generate button creates bulk documents in zip format in the output folder and they would be mailed to your registered email id as well.

XML to PDF and Word

You can use both PDF and Word templates with EDocGen. Edit them in your favorite editors to add tags and upload into EDocGen. While you can also modify your templates inside the App as well, it is suited more for minor changes.

XML to Word

With EDocGen, you can populate XML into

  1. Word templates to create Word documents
  2. Word templates to create PDF documents
  3. PDF templates to create Word documents
  4. PDF templates to create PDF documents

Advanced Features

Nested Tables:

You can populate table inside table and EDocGen supports 4-Level XML data


Please refer for details on how to go about Checkbox creation and population.


Help guide details image population.


Help guide details paragraph population.


Please refer to examples for details on how to perform calcualtions.

Trouble Shooting

  • Unable to upload template

    It may be due to wrong dynamic tags. Just make sure you're closing every tag properly and only uses the tags that are supported by EDocGen

  • After XML upload, the mapper screen doesn't show XML nodes in drop down

    This happens if your XML is not well formated. Check XML file formatting.

  • After XML upload, next button don't do any action

    This happens if your XML is not well formated. Check XML file formatting.

Popular Posts