KWARC / rust-libxml

Rust wrapper for libxml2
https://crates.io/crates/libxml
MIT License
76 stars 38 forks source link

add replace_child_node method #45

Closed dginev closed 5 years ago

dginev commented 5 years ago

Simple replacement method for swapping a child node with a new node, inspired while porting code using Perl's XML::LibXML.

Would need more boilerplate to handle all possible inputs, but shipping this as a quick minor release and keeping things moving. I wrote some basic sanity tests, basic usage pattern seems functional.