Seems to work fine from Python. Using OpenBabel on the trunk, I have:
>>> mol = pybel.readstring("smi", "CC(=O)Cl")
>>> print mol.write("cml")
<molecule>
<atomArray>
<atom id="a1" elementType="C"/>
<atom id="a2" elementType="C"/>
<atom id="a3" elementType="O"/>
<atom id="a4" elementType="Cl"/>
</atomArray>
<bondArray>
<bond atomRefs2="a1 a2" order="1"/>
<bond atomRefs2="a2 a3" order="2"/>
<bond atomRefs2="a2 a4" order="1"/>
</bondArray>
</molecule>
>>>
I am using the libxml2.dll that comes with OpenBabel 2.2.3, which I
can test with Cygwin's "which" as follows:
C:\> which libxml2.dll
/cygdrive/c/Program Files/OpenBabel-2.2.3/libxml2.dll
I haven't done any work enabling other scripting languages on the
trunk, so I can't easily test whether it works from C# there...
- Noel
2009/12/1 Matt Sprague <[email protected]>:
> Nope, that didn't help. The program is crashing inside of the the call
> to xmlFreeTextReader. You can view the source here:
> http://svn.gnome.org/viewvc/libxml2/trunk/xmlreader.c?revision=3795&view=markup
> Whatever is happening occurs between the beginning of the function (line
> 2177)
> and the call to xmlFreeParserInputBuffer(input) (line 2245). I thought I was
> closing in on the problem, but the version of libxml2 I built with MinGW
> works just fine. So now I'm really puzzled.
>
> -Matt
>
>
>
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
OpenBabel-scripting mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-scripting