Thanks for the reply. My (limited) understanding of XML parsing rules
lead me to the same conclusion. After I posted, I looked deeper for a
reason for the '?' modifier. Looking at a fragment from jabber:iq:register:
<!ELEMENT query ((instructions? | username? | password? | name? | email? |
address? | city? | state? | zip? | phone? | url? | date? | misc? | text? |
remove?)*)>
I started to think the intent was to limit you to a maximum of one of each
as in:
<!ELEMENT query ((instructions? , username? , password? , name? , email? ,
address? , city? , state? , zip? , phone? , url? , date? , misc? , text? ,
remove?)*)>
This makes a little more sense to me. Allowing multiple username and
password elements, for example, would seem to me to be a bad idea.
Could you point me to the protocol guru/author? I'm re-tooling an old
Win32 server project of mine to use the Jabber protocol. I just want
to get it right.
Thanks,
-Scott
----- Original Message -----
From: Max Horn <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: Scott Cote <[EMAIL PROTECTED]>
Sent: Sunday, June 03, 2001 4:00 AM
Subject: Re: [JDEV] Jabber DTD ...
> At 4:43 Uhr -0700 03.06.2001, Scott Cote wrote:
> >Hello. I'm new to the Jabber dev list. I'm enjoying getting my feet wet
> >in the Jabber universe. To that end, I have a question regarding some
> >entries in the protocol DTD files.
> >
> >I've see elements that are formed similar to the following:
> >
> ><!ELEMENT foo (( a? | b? | c?)*)>
> >
> >What is the difference between that and the following?
> >
> ><!ELEMENT foo (( a | b | c)*)>
> >
>
> I think there is no difference at all, only somebody liked it a bit
> more complicated ;) But both regular expression yield the same.
>
>
> Just my believe of course, i await being proved wrong ;)
>
>
> Max
> --
> -----------------------------------------------
> Max Horn
> C++/ObjC/Java Developer
>
> email: <mailto:[EMAIL PROTECTED]>
> phone: (+49) 6151-494890
> _______________________________________________
> jdev mailing list
> [EMAIL PROTECTED]
> http://mailman.jabber.org/listinfo/jdev
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev