Why not turn osis2mod into a web service? Then it wouldn&#39;t matter how it is implemented since it would be abstracted away by the web service interface. It could use the best XML libraries available today and written in the programming language of choice, both of which would make maintenance and the addition of new features much easier. <br>
<br>Weston<br><br><div class="gmail_quote">On Mon, Apr 5, 2010 at 5:55 AM, Manfred Bergmann <span dir="ltr">&lt;<a href="mailto:manfred.bergmann@me.com">manfred.bergmann@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi DM.<br>
<br>
Am 05.04.2010 um 13:21 schrieb DM Smith:<br>
<div class="im"><br>
&gt; Regarding using a &quot;real&quot; parser, it is a good idea. But we don&#39;t want SWORD to be dependant on an external parser.<br>
<br>
</div>What&#39;s the reason for that?<br>
I could understand if it would mean for the user to install certain libraries manually but when the sources can be integrated into the project and has the appropriate licence then why not?<br>
<font color="#888888"><br>
<br>
Manfred<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; On 02/04/2010 05:31 AM, John Zaitseff wrote:<br>
&gt;&gt; Dear SWORD developers,<br>
&gt;&gt;<br>
&gt;&gt; Firstly, thanks for developing the SWORD library!  I have been using<br>
&gt;&gt; this library, in conjunction with the BibleTime front-end, for many<br>
&gt;&gt; years.<br>
&gt;&gt;<br>
&gt;&gt; I have recently started to develop some OSIS documents of my own.<br>
&gt;&gt; In doing so, I found that the XML parser in osis2mod is somewhat<br>
&gt;&gt; fragile---something that you are, no doubt, aware of.<br>
&gt;&gt;<br>
&gt;&gt; In particular, osis2mod does not handle XML comments at all, nor<br>
&gt;&gt; does it correctly parse the &lt;header&gt; element.  Being able to handle<br>
&gt;&gt; XML comments is, I think, quite important---I like to document the<br>
&gt;&gt; SVN revision ID, for example, in an XML comment.<br>
&gt;&gt;<br>
&gt;&gt; Furthermore, the osis2mod XML parser looks for the first &lt;div&gt; in<br>
&gt;&gt; the document, no matter where that occurs.  In particular, if the<br>
&gt;&gt; OSIS document includes a &lt;revisionDesc&gt; tag in the header, it will<br>
&gt;&gt; have &lt;p&gt; tags as well---which will be translated by transformBSP()<br>
&gt;&gt; into &lt;div&gt; tags---and get used as the starting point for the<br>
&gt;&gt; document!<br>
&gt;&gt;<br>
&gt;&gt; For this reason, I have generated a quick patch that will solve<br>
&gt;&gt; these particular problems.  Could you please apply it to the SVN<br>
&gt;&gt; head for utilities/osis2mod.cpp.  Comments are handled similar to<br>
&gt;&gt; spaces: they are skipped.  And handleToken() now looks for the first<br>
&gt;&gt; &lt;div&gt; after the &lt;/revision&gt; end tag.<br>
&gt;&gt;<br>
&gt;&gt; In general, I think that (perhaps eventually) the proper way to<br>
&gt;&gt; parse XML is to use a library like libxml---which is designed<br>
&gt;&gt; specifically for this purpose.<br>
&gt;&gt;<br>
&gt;&gt; Yours truly,<br>
&gt;&gt;<br>
&gt;&gt; John Zaitseff<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; sword-devel mailing list:<br>
&gt;&gt; <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
&gt;&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt;&gt;<br>
&gt;&gt; Instructions to unsubscribe/change your settings at above page<br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
&gt; <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
&gt; Instructions to unsubscribe/change your settings at above page<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</div></div></blockquote></div><br>