Jacek Konieczny wrote:

On Thu, Sep 25, 2003 at 02:33:36PM +0200, Ulrich B. Staudinger wrote:


developers keep complaining about this "error in the DTD", at least in their understanding - which i can understand, too. The error is for sure not the coffe:stats namespace (which i want to see written down in a formal JEP), it's the lack of subelements of query in iq-get.



There is no element "query" in jabber:client namespace. In any different name space it is different element. DTD describing "query" element in one namespace tells nothing about "query" element in other namespace the same way DTD element definition for "query" element doesn't describe "iq" element.

true, i didn't check the DTD before, too. In fact i didn't ever really check the DTD cause when i started i used some other documents ....

Anyway, if you can't remember, i still can remember several discussions about this topic. Ok, maybe it is the jabber server not letting those IQ tags (with no query) pass.

<iq type='set' to='[EMAIL PROTECTED]'>
<test/>
</iq>
<iq from="[EMAIL PROTECTED]" type="error" to="[EMAIL PROTECTED]/Psi" >
<test/>
<error code="503" >Service Unavailable</error>
</iq>

Anyway, the DTD speaks different about the iq tag. it says:
<!ELEMENT iq (#PCDATA)>
<!ATTLIST iq
to CDATA #IMPLIED
from CDATA #IMPLIED
id CDATA #IMPLIED
type (
get | set | result | error
) #IMPLIED
>


thus, if you send <iq from="[EMAIL PROTECTED]" type="error" to="[EMAIL PROTECTED]/Psi" >
PARAMETER_IN_NO_XML
</iq>


it'll get through.

ulrich
--
Ulrich B. Staudinger
http://www.die-horde.de
email: [EMAIL PROTECTED]
jid: [EMAIL PROTECTED]

current project: REDHORN
http://redhorn.sourceforge.net

Blog: http://jabber.linux.it/jogger/[EMAIL PROTECTED]


_______________________________________________ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev

Reply via email to