Jonas Schäfer
b0803f831b
xso-proc: add support for parsing text content
2024-07-01 08:01:42 +02:00
Jonas Schäfer
0c57be3e61
xso-proc: add support for defaulting in attribute parsing
2024-06-30 13:05:37 +02:00
Jonas Schäfer
c0fc7f49cf
xso-proc: add support for non-String typed attributes
2024-06-30 13:01:36 +02:00
Jonas Schäfer
d4d520e1f6
xso-proc: add support for built-in prefixes in attribute names
...
This simplifies the use of built-in XML attributes such as xml:lang.
2024-06-24 12:39:32 +02:00
Jonas Schäfer
84de7fc248
xso-proc: add support for namespaced attributes
2024-06-24 12:39:32 +02:00
Jonas Schäfer
219d682295
xso-proc: add support for renaming attributes
...
This is akin to `#[serde(rename = ..)]` and thus useful.
2024-06-24 11:33:10 +02:00
Jonas Schäfer
212c5c4a83
xso-proc: add support for parsing attributes into Strings
...
This is bare-bones and is missing many features which we intend to add
in future commits, such as parsing from attributes whose names differ
from the field names and parsing into non-String types.
2024-06-24 11:33:10 +02:00
Jonas Schäfer
2efef5ceeb
xso-proc: add support for string literals for namespaces
...
Makes it easier to use ad-hoc.
2024-06-23 12:40:18 +02:00
Jonas Schäfer
4d1166b66d
xso-proc: allow paths as XML names
...
Not sure if this is something useful to have, but it feels consistent
with `namespace`.
2024-06-23 12:40:18 +02:00
Jonas Schäfer
1611c5fba9
xso-proc: validate XML names against rxml_validation::NcName
...
That way we avoid a fallible conversion at runtime.
2024-06-23 12:22:17 +02:00
Jonas Schäfer
0adfd1218b
xso-proc: start making derive macros for FromXml and IntoXml
...
For now, these macros only support empty elements. Everything else will
be rejected with a compile-time error.
2024-06-23 12:20:02 +02:00