1
0
mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git synced 2024-06-17 13:25:25 +02:00
xmpp-rs/parsers
Jonas Schäfer b5de6cb82c xmpp_parsers::jingle: add ReasonElement::other
The Jingle XEP states [1] that the `<reason/>` element may contain up
to one element which further qualifies the error condition:

> The <reason/> element MAY contain an element qualified by some other
> namespace that provides more detailed machine-readable information
> about the reason for the action.

The schema agrees:

> ```
>   <xs:complexType name='reasonElementType'>
>     <xs:sequence>
>       <xs:choice>
>         <!-- … omitted … -->
>       </xs:choice>
>       <!-- … omitted … -->
>       <xs:any namespace='##other' minOccurs='0' maxOccurs='1'/>
>     </xs:sequence>
>   </xs:complexType>
> ```

   [1]: https://xmpp.org/extensions/xep-0166.html#def-reason
2024-04-17 17:13:56 +02:00
..
examples Update edition to 2021 2023-12-15 19:40:09 +00:00
src xmpp_parsers::jingle: add ReasonElement::other 2024-04-17 17:13:56 +02:00
Cargo.toml Use relative cargo paths when using local copy 2023-12-18 13:06:22 +01:00
ChangeLog parsers: re-export the jid module entirely 2023-10-26 14:03:21 +02:00
doap.xml Added xep-0264 to doap.xml 2024-02-08 16:07:41 +00:00
LICENSE Rename the xmpp-parsers directory to parsers 2021-10-11 08:24:16 +02:00
README.md xmpp-parsers: Add a README 2022-03-07 12:59:43 +01:00

xmpp-parsers

Whats this?

A crate which provides parsers and serialisers for most XMPP elements, to avoid having to deal with XML manually. It validates its inputs by default, and aims at providing useful errors when a particular XML element was invalid.

What license is it under?

MPL-2.0 or later, see the LICENSE file.