On Wed, May 9, 2012 at 7:31 PM, xancorreu <
xanc...@gmail.com> wrote:
> Hi,
>
> For my personal project (ditz clone) I want to store things in XML. I see
> library reference and no xml library is present. Is there a short-term
> planning for implementing that?
An XML parser is one of the top items on my personal library wish
list, but until now I haven't needed it in my own projects, so I have
focused on other things.
I have found that often it's actually very easy to write a parser for
a simple text-based file format using only things like regular
expressions and Str split, and the data files can be easier to read
and edit manually thank XML.
For example, instead of
<data>
<item>
<name>foo</name>
<size>3</size>
</item>
...
</data>
you could use something like this
name: foo
size: 3
--
...
Of course this is mostly valid for relatively simple data formats. XML
is a win if you have complex recursive data structures, for example.
Jukka