I've been pondering a similar problem lately, so I'd like to piggyback on the OP's question. We currently use a messy mix of YAML, JSON, and other homegrown formats to store various pieces of configuration data in our app. We are planning on writing a couple of features soon which depend on representing the entire system configuration in one big text file. We're leaning towards XML, because of a similar requirement to the OP's: that the file be easy to read and manipulate in languages other than Perl.
I am slightly worried that we don't know what we're getting ourselves into, and that the one-big-file is going to wind up being just as much of a nightmare to deal with as our current hodgepodge of separate files. Can anyone suggest good resources for reading up on this? Is there a public library of standard XML formats, so that we won't have to re-invent the wheel? Is a well-designed DTD our magical answer for other languages? Has anyone traveled a similar path and learned any good lessons?
Thanks,
Joe
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|