<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Converting MIF to XML &#8211; Java Version</title>
	<atom:link href="http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/feed/" rel="self" type="application/rss+xml" />
	<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/</link>
	<description>A sourceful of secrets</description>
	<lastBuildDate>Tue, 08 Jun 2010 22:31:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Marcel</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-26</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Sat, 18 Jul 2009 19:14:25 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-26</guid>
		<description>I am able to process a large mif file. Next question is how to transform this to docbook5.

Are there xsl examples available to do that? My document includes both framemaker drawings as well as equations.

MT</description>
		<content:encoded><![CDATA[<p>I am able to process a large mif file. Next question is how to transform this to docbook5.</p>
<p>Are there xsl examples available to do that? My document includes both framemaker drawings as well as equations.</p>
<p>MT</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basav</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-25</link>
		<dc:creator>Basav</dc:creator>
		<pubDate>Fri, 27 Mar 2009 07:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-25</guid>
		<description>Oh..okay I got it..! I was using java 1.4. I&#039;m able to run it through Java 1.6..!

thanks,
Basav</description>
		<content:encoded><![CDATA[<p>Oh..okay I got it..! I was using java 1.4. I&#8217;m able to run it through Java 1.6..!</p>
<p>thanks,<br />
Basav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-23</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 21 Jul 2008 15:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-23</guid>
		<description>@another Andrew - I haven&#039;t looked into OOo XML enough to say how difficult it would be to convert the MIF XML to a readable OOo document. I&#039;m guessing it would be a bit of a challenge but you might start with looking at a few posts &lt;a href=&quot;http://kfahlgren.com/blog/2007/02/03/exploiting-framemaker-mif-as-xml-introduction/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; which describe one use case of converting MIF XML to DocBook and back again. You could possibly even try doing MIF XML -&gt; DocBook -&gt; OOo.</description>
		<content:encoded><![CDATA[<p>@another Andrew &#8211; I haven&#8217;t looked into OOo XML enough to say how difficult it would be to convert the MIF XML to a readable OOo document. I&#8217;m guessing it would be a bit of a challenge but you might start with looking at a few posts <a href="http://kfahlgren.com/blog/2007/02/03/exploiting-framemaker-mif-as-xml-introduction/" rel="nofollow">here</a> which describe one use case of converting MIF XML to DocBook and back again. You could possibly even try doing MIF XML -&gt; DocBook -&gt; OOo.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-22</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 21 Jul 2008 14:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-22</guid>
		<description>@Venkat - It&#039;s difficult to diagnose the problem without seeing the MIF file. If you&#039;re still having issues send me a copy of the MIF file you&#039;re trying to convert and I&#039;ll take a look.</description>
		<content:encoded><![CDATA[<p>@Venkat &#8211; It&#8217;s difficult to diagnose the problem without seeing the MIF file. If you&#8217;re still having issues send me a copy of the MIF file you&#8217;re trying to convert and I&#8217;ll take a look.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: another Andrew</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-21</link>
		<dc:creator>another Andrew</dc:creator>
		<pubDate>Wed, 16 Jul 2008 16:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-21</guid>
		<description>Andrew,

This looks very interesting.  I was given an assignment of converting portions of framemaker documents into openoffice.  However, I know virtually nothing of xml, which is not good.  How feasible would it be to translate the above generated xml into OOo readable xml?

Thank you,

Another Andrew</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>This looks very interesting.  I was given an assignment of converting portions of framemaker documents into openoffice.  However, I know virtually nothing of xml, which is not good.  How feasible would it be to translate the above generated xml into OOo readable xml?</p>
<p>Thank you,</p>
<p>Another Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venkat</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-20</link>
		<dc:creator>Venkat</dc:creator>
		<pubDate>Mon, 30 Jun 2008 13:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-20</guid>
		<description>Hi Andrew,

Thank for your reply, the problem is solved, but it&#039;s not printing xml string, i am getting some specila character like....

#%v
=EndInset
]]&gt;.
can you help on this...

thank you</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>Thank for your reply, the problem is solved, but it&#8217;s not printing xml string, i am getting some specila character like&#8230;.</p>
<p>#%v<br />
=EndInset<br />
]]&gt;.<br />
can you help on this&#8230;</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-19</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 30 Jun 2008 04:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-19</guid>
		<description>@venkat - I&#039;ve released a new version which should fix the error your getting. You can download the latest version (0.3) &lt;a href=&quot;http://code.qnot.org/svn/projects/mif2xml-j/releases/mif2xml-0.3.jar&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. If you&#039;re still getting errors with the latest version let me know and I&#039;ll try and get them fixed up.</description>
		<content:encoded><![CDATA[<p>@venkat &#8211; I&#8217;ve released a new version which should fix the error your getting. You can download the latest version (0.3) <a href="http://code.qnot.org/svn/projects/mif2xml-j/releases/mif2xml-0.3.jar" rel="nofollow">here</a>. If you&#8217;re still getting errors with the latest version let me know and I&#8217;ll try and get them fixed up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: venkat</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-18</link>
		<dc:creator>venkat</dc:creator>
		<pubDate>Mon, 30 Jun 2008 00:08:22 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-18</guid>
		<description>Hi Andrew,

nice, clean work! This looks very importent to me, because part of my work involves handling of FrameMaker legacy documents.

One question: I get an exception with version 0.2

7.0H
Unexpected exception: 255
java.lang.ArrayIndexOutOfBoundsException: 255
	at org.qnot.mif2xml.MifLexer.yylex(MifLexer.java:600)
	at org.qnot.mif2xml.Main.main(Main.java:33)
All the best at your new job!

Can you help on this..
thank you</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>nice, clean work! This looks very importent to me, because part of my work involves handling of FrameMaker legacy documents.</p>
<p>One question: I get an exception with version 0.2</p>
<p>7.0H<br />
Unexpected exception: 255<br />
java.lang.ArrayIndexOutOfBoundsException: 255<br />
	at org.qnot.mif2xml.MifLexer.yylex(MifLexer.java:600)<br />
	at org.qnot.mif2xml.Main.main(Main.java:33)<br />
All the best at your new job!</p>
<p>Can you help on this..<br />
thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aeb</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-17</link>
		<dc:creator>aeb</dc:creator>
		<pubDate>Wed, 30 Apr 2008 15:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-17</guid>
		<description>@IH.. Thanks for the feedback. The XML output from mif2xml seems to work best when you want to process MIF using XML technologies like XSLT/XQuery or xml processing libraries in your favorite programming language. The xml is quite ugly but it has the advantage of round tripping back into raw MIF for use with FrameMaker again. I haven&#039;t exhaustively tested mif2xml so I&#039;m sure there&#039;s a few bugs. Most of the issues that come up have been with parsing facet data and embedded TIFF/EPS objects. mif2xml was written using FrameMaker 7.0 as a reference and I haven&#039;t looked into how much has changed in 8.0. I tested a few FrameMaker 8.0 files and things to see to work ok.

I haven&#039;t really given much thought to external entities. One possible way to handle them might be to add some command line options to mif2xml so that the external entity references get added to the resulting XML. Something along the
lines of:

  $ mif2xml --doctype /path/to/dtd

Which would output something like:

  &lt;?xml version=&quot;1.0&quot;?&gt;
  &lt;!DOCTYPE mif SYSTEM &quot;/path/to/dtd&quot;&gt;
  &lt;mif&gt;
  ..
  &lt;/mif&gt;

Regarding character sets, mif2xml doesn&#039;t explicitly tell Java which encoding to use so when reading/writing files Java will use the platform&#039;s default encoding.  This should work as expected unless you attempt to process a MIF file that was created on another platform using a different encoding. I could add another command line switch for defining a specific encoding to use when reading/writing MIF files which may help in that case. The latest version of mif2xml (0.3) which you can &lt;a href=&quot;http://code.qnot.org/svn/projects/mif2xml-j/releases/mif2xml-0.3.jar&quot; rel=&quot;nofollow&quot;&gt;download here&lt;/a&gt;, has some bug fixes (reported by @Jyothi) and should do a better job with facet data and MIF 8.0 Unicode files.

I&#039;d love to hear any other feedback you may have or any ideas for new features.

--Andrew</description>
		<content:encoded><![CDATA[<p>@IH.. Thanks for the feedback. The XML output from mif2xml seems to work best when you want to process MIF using XML technologies like XSLT/XQuery or xml processing libraries in your favorite programming language. The xml is quite ugly but it has the advantage of round tripping back into raw MIF for use with FrameMaker again. I haven&#8217;t exhaustively tested mif2xml so I&#8217;m sure there&#8217;s a few bugs. Most of the issues that come up have been with parsing facet data and embedded TIFF/EPS objects. mif2xml was written using FrameMaker 7.0 as a reference and I haven&#8217;t looked into how much has changed in 8.0. I tested a few FrameMaker 8.0 files and things to see to work ok.</p>
<p>I haven&#8217;t really given much thought to external entities. One possible way to handle them might be to add some command line options to mif2xml so that the external entity references get added to the resulting XML. Something along the<br />
lines of:</p>
<p>  $ mif2xml &#8211;doctype /path/to/dtd</p>
<p>Which would output something like:</p>
<p>  &lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
  &lt;!DOCTYPE mif SYSTEM &#8220;/path/to/dtd&#8221;&gt;<br />
  &lt;mif&gt;<br />
  ..<br />
  &lt;/mif&gt;</p>
<p>Regarding character sets, mif2xml doesn&#8217;t explicitly tell Java which encoding to use so when reading/writing files Java will use the platform&#8217;s default encoding.  This should work as expected unless you attempt to process a MIF file that was created on another platform using a different encoding. I could add another command line switch for defining a specific encoding to use when reading/writing MIF files which may help in that case. The latest version of mif2xml (0.3) which you can <a href="http://code.qnot.org/svn/projects/mif2xml-j/releases/mif2xml-0.3.jar" rel="nofollow">download here</a>, has some bug fixes (reported by @Jyothi) and should do a better job with facet data and MIF 8.0 Unicode files.</p>
<p>I&#8217;d love to hear any other feedback you may have or any ideas for new features.</p>
<p>&#8211;Andrew</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IH</title>
		<link>http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-16</link>
		<dc:creator>IH</dc:creator>
		<pubDate>Fri, 25 Apr 2008 16:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://left.subtree.org/2007/01/31/converting-mif-to-xml-java-version/#comment-16</guid>
		<description>Hi Andrew,

Thank you for the conversion script.  I have been playing with fm8 and its xml output.  It seems to me that the fm xml output outputs the data but is a lossy conversion and doesn&#039;t really do a good job with formating data where as your xml converter will keep everything from the mif to xml in a lossless conversion.

Have you found any cases that mif2xml does not work in?  How would external entity references (I think you can do these in frame) be handled.  What about character sets?

Regards,

IH</description>
		<content:encoded><![CDATA[<p>Hi Andrew,</p>
<p>Thank you for the conversion script.  I have been playing with fm8 and its xml output.  It seems to me that the fm xml output outputs the data but is a lossy conversion and doesn&#8217;t really do a good job with formating data where as your xml converter will keep everything from the mif to xml in a lossless conversion.</p>
<p>Have you found any cases that mif2xml does not work in?  How would external entity references (I think you can do these in frame) be handled.  What about character sets?</p>
<p>Regards,</p>
<p>IH</p>
]]></content:encoded>
	</item>
</channel>
</rss>
