A brief meta note here: are you sure you want your configuration files in XML? My experience (which you should take with the appropriate grain of salt) has been:

- As an application framework developer XML configuration files are great. There are readily available parsers and transformation frameworks out there, just about everyone knows enough about XML to know what's going on, and serialization to/from XML is quite easy. (There's the grey area of when to use element data versus attribute data, but whatever.)

- As a user, I hate it. It's a PITA to edit in a normal editor, particularly when you start getting deeper and deeper into nested data structures.

And since as an application developer I try to think of users, I don't user XML configuration files. I've found that the INI structure is expressive and easy to edit. It also prevents me from putting too much 'deep' information in a config file because INI represents very complex data structures awkwardly.

There was an interesting discussion about these sorts of things on the P5EE mailing list.

Chris
M-x auto-bs-mode


In reply to Re: XML-ish Data::Dumper? by lachoy
in thread XML-ish Data::Dumper? by agelina

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.