Hello,
I am new at rust and i am searching some library to read a XML file, is something like this in rust?
https://www.php.net/manual/es/function.simplexml-load-file.php
Thank you.
Hello,
I am new at rust and i am searching some library to read a XML file, is something like this in rust?
https://www.php.net/manual/es/function.simplexml-load-file.php
Thank you.
There are a few to chose from:
Most are SAX-like parsers. The one with DOM is xml5ever â Rust parser // Lib.rs
You may also try serde-xml-rs â Rust data encoding library // Lib.rs â it's different in that you don't traverse a parsed document, but instead extract structs from it.
There is a comparison table:
https://github.com/RazrFalcon/choose-your-xml-rs
The author of that comparison table wrote a tool himself: roxmltree
Too bad he is optimising the opposite direction (read-only access) then I intend to use. I'm looking for an XML library that can do canonicalization and normalisation, which means not read-only. So far I found none.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.