Maxime “pep” Buquet
4994ac20f9
xso-proc: clippy run
...
Caught a bug hidden behind #[cfg(not(feature = "minidom"))]
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2025-04-08 12:47:56 +02:00
Jonas Schäfer
b05ee0280a
xso: add support for selectively discarding text and attributes
2025-04-06 08:36:15 +02:00
Emmanuel Gil Peyrot
1823afbc71
xso-proc: Add the default flag to the element meta
...
This allows the payload to be absent, and requires the field type to be
Option<minidom::Element>.
2025-01-26 16:40:05 +00:00
Emmanuel Gil Peyrot
c72cf3ddd1
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.
2025-01-26 16:40:05 +00:00
Jonas Schäfer
bf12accd48
xso-proc: improve NestedMatcher documentation
...
skip-changelog
2025-01-26 14:00:48 +00:00
Emmanuel Gil Peyrot
01a0c51a2f
xso-proc: Add support for the codec field on attribute meta
...
This allows a custom TextCodec to be used for encoding and decoding the
attribute’s value, instead of FromXmlText and AsOptionalXmlText.
2025-01-25 18:07:44 +01:00
Jonas Schäfer
727e57b756
Implement #[xml(flag)] meta
2025-01-21 19:12:43 +01:00
Jonas Schäfer
7d8ffe45a7
xso: add support for ignoring unknown stuff in extracts
2024-10-26 17:37:32 +00:00
Jonas Schäfer
66233b0150
xso: add support for ignoring unknown children
2024-10-26 17:37:32 +00:00
Jonas Schäfer
290460ba9d
xso: add support for ignoring unknown attributes
2024-10-26 17:37:32 +00:00
Alvaro Parker
2ff89a9e42
fix typos
2024-09-16 18:29:44 -03:00
Jonas Schäfer
1ecb95881c
xso: add support for extracting tuples
2024-08-11 07:58:12 +02:00
Jonas Schäfer
656125a850
xso-proc: change field def's span slightly for better UX
2024-08-05 15:33:57 +02:00
Jonas Schäfer
0361b5905b
xso: implement catch-all for unknown elements
2024-08-05 15:33:57 +02:00
Jonas Schäfer
2358c8636e
xso-proc: refactor field implementations into separate files
...
This decreases indentation levels on the various implemenations, it
groups the implementations together physically, and (spoiler alert!)
we'll actually need the dyn Field trait object-ness (much) later on.
2024-08-04 16:14:47 +02:00
Jonas Schäfer
19be14cdd8
xso-proc: make field into a module folder
...
This is in prepraration of more refactoring to come, in order to make
the individual field implementations easier to grok and look at.
2024-08-04 16:11:31 +02:00