I have some data in xml format and I need to create tables by importing data from the xml file using MIF libraries .How do I do this ?
Copy link to clipboard
If the source data is in XML, it's probably better to create a structured application that understands this XML and maps it into FrameMaker table elements. Depending on the complexity of your source XML, read/write rules (rwrule) might be enough for this. Otherwise a structured application that does XSLT Preprocessing when opening your XML might be the better option. Once you have the XML open in FrameMaker and rendered as a table, you can continue to work in Structured FrameMaker or copy & paste a table from this structured document into an unstructured document and remove the structure. Depends on if your final FrameMaker document is xml-based (e.g. DITA) or a classic "unstructured" document.
Maybe you can post some sample xml code here?
Thank you for your reply .
This is how I have the content in my XML source data
<Event Name>Employee1</Event Name>
<Event ID >480</Event ID>
<Event Name>Employee2</Event Name>
<Event ID >482</Event ID>
And I need the table as below ,
Could you please give me few example scripts that maps the data from the xml file to the framemaker table elements ?