Re: Nested configuration information...



Richard Reich <rreich shadowtechllc com> writes:
> I was wondering does gconf have the ability to nest information?  Not so
> great example in xml...
> 
> <customer>
> 	<name>
> 		<first>John</first>
> 		<middle>Smith</middle>
> 		<last>Doe</last>
> 	</name>
> 	<billing>
> 		<address>
> 			<state>MI</state>
> 		<address>
> 		<payment>
> 			<cc_number>0000 0000 0000 0000</cc_number>
> 		</payment>
> 	<billing>
> 		
> </customer>
> 
> I've taken a look at the GConfClient and the GConfChangeSet, am I
> missing somthing, other than using different directories?
> 

You can use different directories, or you can just store an extra
string at a single key. There's also gconf_unique_key() which can be
useful for dynamically generating keys.

Remember that GConf is not meant to store _data_, just _options_.
That is, if you are putting address books or customer information in
there, you're really using the wrong tool for the job. A lightweight
database like BDB or an XML file would be more appropriate for those
purposes.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]