[JDEV] Backend parsing - programming in Jabber
Bernino Lind
lind at hlgroup.dk
Mon Aug 18 10:19:27 CDT 2003
Dear sirs,
Can anyone give me some pointers into how it is possible to:
1. define a NS
2. "set" to this NS with arbitrary data
3. "get" from this NS and have calculated result back
Example:
Defined NS in config file:
datecalc:days
<iq type="get">
<query xmlns='datecalc:days'>
<year>1970</year>
<month>august</month>
<day>3</day>
</query>
</iq>
The result being whatever one defines it to be in his or her backend
programming, for example () are comments:
<x xmlns="datecalc:days">
<date>1970-08-03</date>
<days>234</days> (days since epoch, not correct just bogus)
<gregorian>234234</gregorian> (corresponding gregorian date, not correct
just bogus)
Right now Im using xdb_sql and stored procedures via PostgreSQL to have
some sort of backend programming within the jabber domain, but its not
the way to do it.
Anyone have knowledge on how to have a backend programming language
within jabber namespaces?
Best regards,
Bernino Lind
More information about the JDev
mailing list