[standards-jig] <error/> as child element

Peter Saint-Andre stpeter at jabber.org
Wed Feb 13 16:39:33 UTC 2002

Perhaps those different errors messages would arrive in separate <iq/>
(etc.) chunks?


Peter Saint-Andre
email+jabber: stpeter at jabber.org
web: http://www.saint-andre.com/

On Tue, 12 Feb 2002, Iain Shigeoka wrote:

> On 2/12/02 8:09 AM, "Peter Saint-Andre" <stpeter at jabber.org> wrote:
> > The <error/> element can be a child of <message/>, <presence/>, and <iq/>.
> > The old DTDs say that any number of <error/> elements can be included. Is
> > this accurate? If so, I need to change the schemas so they read:
> > 
> > <xsd:element ref='error' minOccurs='0' maxOccurs='unbounded'/>
> It may help for tracing purposes to allow multiple <error/> elements
> (different sub systems or perhaps stack traces would find it easier to
> report errors separately using separate <error/> elements.)  This is
> especially true if errors can be generated from different causes (and thus
> have different error codes.)  OTOH, if no one actually uses multiple
> elements, perhaps we should reduce it to one and only one... :)  Knowing
> there can be only one makes the client implementer's job easier for
> reporting errors to users.
> -iain
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com

More information about the Standards mailing list