Commit graph xmpp-rs/minidom/src/tree_builder.rs
Author SHA1 Message Date
pep
9595ffe2c2
minidom: clippy
Signed-off-by: pep <pep@bouah.net>
2025-11-01 16:30:17 +01:00
Maxime “pep” Buquet
19865e5f1e minidom: breaking: Allow getting Element attributes by namespace
- Move Element.attributes to `AttrMap`, slowly using rxml's features and
  unrolling our own.
- Add Element::attr_ns that requires the attribute namespace.
  Element:attr defaults to rxml::Namespace::none() but the interface
  changes nonetheless for a &NcNameStr. Similar changes on
  `ElementBuilder` methods.
- Remove iterator structs for attributes, return a ref on the AttrMap
  directly as we don't need to keep attributes' internals hidden
  anymore.
- Enable rxml's `macros` feature within tests to access the `xml_ncname`
  macro.

Signed-off-by: pep <pep@bouah.net>
2025-10-22 18:51:39 +02:00
Maxime “pep” Buquet
e9bdae8808 minidom: add copyright header
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2025-10-21 23:40:00 +02:00
Maxime “pep” Buquet
99f900558c minidom: Include prefixes in serialization when using Element::from_reader_with_prefixes
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2025-09-16 21:56:24 +02:00
Emmanuel Gil Peyrot
d203a348cb minidom: Make the whole crate almost no_std
Only std::io is still missing, maybe we should consider using a crate
implementing its API on top of no_std?
2025-03-30 12:46:39 +02:00
Emmanuel Gil Peyrot
af14717ddc minidom: Fix most issues reported by clippy
This improves some of our internals.

skip-changelog: These changes are purely internal.
2025-03-27 11:19:56 +00:00
Werner Kroneman
65c91439f8 Used Element::append_text instead of append_text_node in TreeBuilder::process_text to prevent weird splitting of text when there is no element in between. 2024-03-10 10:46:30 +00:00
Maxime “pep” Buquet
60ebcb8c8a
minidom: clippy pass
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-12-14 18:12:45 +01:00
Maxime “pep” Buquet
93174f97ec
minidom: Allow passing prefixes alongside a reader
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-09 13:40:18 +01:00
Jonas Schäfer
ea366c2334 Rip out quick-xml 2022-04-24 13:27:48 +02:00
Astro
d4a5a8247b minidom, tokio-xmpp: switch xml parsing to rxml 2022-04-19 20:42:30 +02:00