[JDEV] Standards
Peter Millard
peter at vantek-corp.com
Wed Jan 26 13:23:42 CST 2000
I kind of like this idea of using XML to store config info.
Like was prev. mentioned, all clients should have SOME kind of access to an XML
parser, and so grabbing the info would be moderately trivial. The one thing I'm
wondering about is the actual content.. The "main" stuff we'd want standardized
(so multiple clients care share the same info), but then have areas for
client-specific options? IE, ALL clients that support the "stnd" config files
would have to support like the <connection> tag, and <user> or something.
Something along these lines would be cool:
<jabber_config>
<connection host='jabber.org' port='5222'/>
<user username='pgmillard' password='xxxx' resource='pgm'>
<first>Peter</first>
<last>Millard</last>
<city>N. Tonawanda</city>
</user>
<client name="WinJab">
<foo>Some WinJab specific stuff</foo>
<resource>pgm-winjab</resource>
<options>
<autoconnect/>
</options>
<position x='300' y='400' w='350' h='400'>
</client>
<client name="Jabba">
<foo>Some Jabba specific stuff</foo>
<resource>pgm-jabba</resource>
</client>
</jabber_config>
Comments?
--------------------------------
Peter Millard
Software Engineer, Vantek Corp.
peter at vantek-corp.com
http://www.vantek-corp.com
More information about the JDev
mailing list