Generate XML from FrameMaker Document


How to generate an XML file from a FrameMaker document? I want to transform the document to other formats.



You can follow this tutorial to generate an XML file from a FrameMaker book.

1. Open the FrameMaker document like

2. Select the FrameMaker document in the document panel, if you have multiple documents open. Then click "File > Save As" menu You see the "Save Document" screen.

3. Enter the text file name like "FM-Document-Example". And make sure that "Save as type" is set to "XML (*.xml)".

4. Click "Save".

5. Wait for FrameMaker to finish generating the XML file.

6. Go to the folder where the XML file was saved. You actually see two files generated:

FM-Document-Example.xml - Contains XML code for the document
FM-Document-Example.css - Contains display CSS styles 

7. Open FM-Document-Example.xml in an XML editor. You see how the document content is organized.

<?xml-stylesheet href="FM-Document-Example.css" type="text/css" 
    <TITLE> </TITLE>
        <A ID="pgfId-998390"/>
First FrameMaker Document</Body>
        <A ID="pgfId-998556"/>
        <A ID="pgfId-998553"/>
        <A ID="pgfId-998496"/>
This is our first FrameMaker document. A FrameMaker document a 
single-file document created in FrameMaker and saved in FrameMaker 
file format (.fm). </Body>
        <A ID="pgfId-998516"/>

The picture below shows you how to generate XML from a FrameMaker document:
Generate XML from FrameMaker Document


Create and Update FrameMaker Documents

⇒⇒FrameMaker Tutorials

2018-01-16, 196👍, 0💬