|
From: Matthias T. <mt...@we...> - 2012-11-04 14:37:47
|
Hi, > concerning an options naming scheme I would like to keep the > xml-node-tree flat and simple, like this: > > device_type = network > device_host = 127.0.0.1 > device_port = 0815 This way you combine a flat formal structure with a deeply nested non-formal structure. I cannot see any advantage here (to be polite). The flat design looks like a legacy windows ini file in XML syntax. Some of the "nasty side effect you've already addressed. I very much prefer the structured (non-flat) approach. The device node could be restructured to look like <device> <rs232 speed="9600" restore-on-exit="true" os-device-name="com7" ../> <parport io="0x30e"/> <usb vendor="0xdead" id="0xbeef" serial="1234"/> <net ip="1.2.3.4" tcp="4303" reconnect="true"/> </device> etc pp. Turning the (e.g.) <ddl> node definitions into <bus type="ddl"> is something that would make things more difficult to handle (IMHO). Matthias |