Omni Systems, Inc. |  | Mif2Go User's Guide, Version 55 |  |  |  |  |

> 14 Converting to generic XML > 14.1 Understanding how Mif2Go generates XML output > 14.1.2 Introducing structure with Mif2Go

### 14.1.2 Introducing structure with Mif2Go

You can use the Mif2Go macro language to construct a hierarchical file out of a flat file, with very little code. In many ways, it is easier to write Mif2Go macros than to write the conversion tables FrameMaker uses to do the structuring; certainly it is no more difficult.

When you use native FrameMaker XML export via File > Save As... to export an unstructured document to XML, you have to map the format tags to corresponding elements. When you use Mif2Go to generate XML, you still have to map format names to element names, but you can also specify nesting levels and attributes; and you can use macros freely to create additional structure, before and after elements and elsewhere.

If you map only format names, what you get when you use Mif2Go to generate XML is one root element, which you specify in the configuration file; see §14.3 Specifying generic XML output settings. The root element contains an element for every paragraph. Each paragraph element can contain elements for each character format used in the paragraph, and you can specify nesting levels for paragraph elements.

> 14 Converting to generic XML > 14.1 Understanding how Mif2Go generates XML output > 14.1.2 Introducing structure with Mif2Go

| Mif2Go User's Guide: 14.1.1 Accommodating HTML features in XML output |  | Mif2Go User's Guide: 14.1.3 Introducing structure with XSLT |