igumnoff / shiva

Shiva library: Implementation in Rust of a parser and generator for documents of any type
https://docs.rs/shiva
GNU General Public License v3.0
161 stars 11 forks source link

XML parser and generator change from default Document struct to programmaticaly #39

Closed evgenyigumnov closed 3 months ago

evgenyigumnov commented 4 months ago
  1. replace parser logic from
        let doc: Document = from_str(&doc_string)?;

to

use quick_xml::Reader;
use quick_xml::events::Event;

let mut reader = Reader::from_str(xml_data);
  1. generate logic in the same way
  2. units test requered for this refactoring

PS not completed task in commit https://github.com/igumnoff/shiva/commit/1ba567e7864f72e3690fab2a14831bb65cbebc19

evgenyigumnov commented 3 months ago

not completed task in commit https://github.com/igumnoff/shiva/commit/1ba567e7864f72e3690fab2a14831bb65cbebc19