xso-proc: Add n = 1 flag to element meta
This allows exactly one arbitrary payload in any element, and is handled after every other element with a more specific matcher has been parsed. Both the #[xml(element(n = 1))] meta and its shortcut #[xml(element)] are allowed and treated the exact same way.
This commit is contained in:
parent
057306fba1
commit
c72cf3ddd1
7 changed files with 265 additions and 80 deletions
|
|
@ -21,7 +21,8 @@ Version NEXT:
|
|||
- Support for extracting data from child elements without intermediate
|
||||
structs.
|
||||
- Support for collecting all unknown children in a single field as
|
||||
collection of `minidom::Element`.
|
||||
collection of `minidom::Element`, or one unknown child as a
|
||||
`minidom::Element`.
|
||||
- Support for "transparent" structs (newtype-like patterns for XSO).
|
||||
- FromXmlText and AsXmlText are now implemented for jid::NodePart,
|
||||
jid::DomainPart, and jid::ResourcePart (!485)
|
||||
|
|
|
|||
Loading…
Reference in a new issue