xml-rs
xml-rs copied to clipboard
An XML library in Rust
I get the following error messages when I read a DOS-UTF8 XML file in a Rust program that uses rust-xml, on Windows 7: ``` Running `target\rust-xml-w` Error: 1:2: Unexpected characters...
Dom Tree
This library still needs a way to construct a Document Object Model tree. I have been experimenting with the library and looking for ways to implement it. My initial idea...
The sequence `--` must not occur within a comment, but xml-rs fails to return an error when emitted with `EventWriter` in an `XmlEvent::Comment`. xml-rs correctly gives an error when attempting...
I think it's possible to eliminate the Name/OwnedName, Attribute/OwnedAttribute, reader::XmlEvent/writer::XmlEvent, etc, dualities by switching their fields to use Cow everywhere, and then replacing reader::XmlEvent with writer::XmlEvent (and adding a few...
Hi, In lots of languages (Python, Ruby,...), it's easy to query an xml element attribute by giving its name, using a dict (in Python) or a hash (in Ruby) to...
`StartElementBuilder` allows for duplicated and unnamed attrubutes. For example: ```Rust let element = XmlEvent::start_element("MyElement") .attr("", "") .attr("", "foo") .attr("bar", "foo") .attr("bar", "") ``` Results with: ```XML ```
xml-rs is accepting documents with multiple root nodes while the [XML specifications says that a document must have a unique root](https://www.w3.org/TR/xml/#NT-document). For instance, the following program ``` rust extern crate...
Hello, because when you have a fixed version of a lib, it's easier to have the possibilities to check the sources on the repository. Adding the tag of version give...
It seems that there are problems with bitflags package compatibility with Rust versions, which causes various issues in downstream crates. xml-rs uses bitflags in a very limited way internally, so...
For cases when the document has zero-length, add a separate ErrorKind. This will simplify the error handling.