[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-devel] Re: charedit
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-devel] Re: charedit |
Date: |
Thu, 29 Jun 2006 20:36:36 +0200 |
On 6/29/06, Andrew Phillips <address@hidden> wrote:
Yes, please. A format definition - or even a nesting scheme - would be
very useful.
Okay. I could imagine three variations, although I tend towards number 2:
1. <data>
<var id="" type="..."></var>
<var id="" type="L">
<var id="" type="..."></var>
</var>
</data>
We only have elements of type <var>, which contain CDATA or, if
type="L" nested <var> elements.
2. <data>
<var id="" type="..."></var>
<list id="">
<var id="" type="..."></var>
</list>
</data>
We have <var> elements for simple types and <list> elements for nesting.
3. <data>
<uint_8 id=""></uint_8>
<list id="">
<string id=""></string>
</list>
</data>
There is a different element for each type. Again, <list> is used
for nesting.
We will need to have the following types, also present in the binary
file format:
Boolean, unsigned integers with 1, 2 and 4 bytes, signed integers with
1, 2 and 4 bytes, floats and doubles, 1 byte chars and strings, binary
data and the list.
Since I have not too much experience with XML, I cannot really decide
which of the three suggestions might be suited best. What do you
think?
Kai