-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade minidom to v 0.13 #21
Comments
here's the changelog in minidom https://gitlab.com/xmpp-rs/xmpp-rs/-/blob/main/minidom/CHANGELOG.md looks like they now |
Minidom is at v.0.14 now and requires a NS declaration, which is NOT compliant with XML spec. Reproduction: assert!(Element::from_str(r#"<a b="1"><x/></a>"#).is_err()); // <-- this is a totally well formed XML, but minidom fails it
assert!(Element::from_str(r#"<a xmlns="ns1" b="1"><x/></a>"#).is_ok()); // <- adding a NS fixes it
assert!(Element::from_str(r#"<a xmlns="" b="1"><x/></a>"#).is_ok()); All 3 versions of the XML in the example above are correct, but minidom fails to parse the first one with no They have an issue for this under https://gitlab.com/xmpp-rs/xmpp-rs/-/issues/41. The maintainer said they are not interested in fixing it because it works for them (XMPP has NS for everything and then some) It may be wiser to switch to a more generic XML parser like https://github.com/RazrFalcon/roxmltree. It looks like a better tool with a similar API. I think we can make a backward-compatible release with it. @AlecTroemel , thoughts? |
@rimutaka I have no problem switching away from minidom/xmpp-rs. roxmltree looks promising. I dont think we're mutating any part of the xml "DOM", so the fact that its read only should be ok. I'll have time to look into it more later this week! |
Hello, Recently, compiling my projects leads to the following warning message from the
I did some digging, and the real culprit is
which in turn has the following outdated dependency (see source):
Therefore, |
Hey all, sorry for the inactivity on this. Im finally spending some time getting this project updated. |
The warnings were bothering me enough that I switched now to xml2json-rs. It provides a Have a nice weekend! |
The latest minidom v 0.13 doesn't work with our code. Changes are needed before we can switch to that version. Not sure how hard/trivial that may be.
The text was updated successfully, but these errors were encountered: