On Fri, 5 Jan 2007, Sven Schreiber quoted me:
> As for the bundles, there's now a fairly full mechanism in
> place for "serializing" gretl objects (models, matrices, what
> have you) in XML, and for reading these back from XML. This is
> used in the new-style "session" files. It could be used more
> widely. One issue, though, is how clever 3rd party programs
> would be at reading the XML. (There are DTDs available, if
> that's any help)
Does "new-style" mean from current cvs, or since 1.6.0?
The "new-style" session management was introduced in 1.6.0, but it
was a bit buggy. Several issues have been fixed in CVS.
And could you elaborate on how to "read these back from
there any script interface for that? Can it be appended to an
already opened workfile, as Jack suggested?
There's no script interface at present. But lib/src/gretl_xml.c
contains a set of simple C functions (based on libxml2) for
writing various sorts of data to XML and reading it back, for
example gretl_xml_put_matrix() and gretl_xml_get_matrix().