From: | Aaron Optimizer Digulla |
Date: | 21 Sep 2000 at 08:41:22 |
Subject: | Re: XML Re: AMIOPEN: Hotkey Config/Need suggestions |
On Wed, Sep 20, 2000 at 06:46:59PM +0200, Robbie Schaefer wrote:
> Hi Aaron
>
> >> I am not an expert but I would like to add my comments.
> >>
> >> Why not consider to store configs in XML datafiles?
>
> > Well, mainly because it means that you have to add a couple of megs
> > to your app just to be able to read XML :-) *sigh* I guess there is
> > no way to avoid XML now. And it would make sure that all config files
> > have a similar format. Anyone willing to port a DOM parser to Ami ?
>
> There are a couple of Java-Parsers, but I guess you meant a port for the VP.
> Anyway, you don't need a DOM-Parser. For simple config-files an event-driven
> parser might be sufficient. That way you'll have minimal memory overhead.
> And if things could be done with a non-validating parser, building an
> XML-parser for Ami would be quite simple.
That's a bad idea; usually, you want to read the config into a structure
and this is exactly what DOM does. To write another, maybe more simple,
DOM-like parser, would not help: In the end, you would have a DOM parser
(because we need one anyway) plus this "simple DOM parser", so it would
even be more inefficient :-)
Well, I've pretty mixed feeling about this. On one hand, we must have
full XML support but OTOH, I have a very bad feeling about efficiency
:-)