txml 0.2.0

Small no_std non-conforming XML parser
Documentation
  • Coverage
  • 17.44%
    15 out of 86 items documented0 out of 27 items with examples
  • Size
  • Source code size: 43.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.17 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • tadeokondrak/txml
    5 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tadeokondrak

txml

An XML parser. It's about ~200 SLOC but it:

  • Doesn't parse DTDs and therefore doesn't support custom entities
  • Doesn't validate DTDs, of course
  • Doesn't allow for streaming - you have to read the whole file at once
  • Doesn't reject all non-well-formed documents
  • Doesn't have any dependencies
  • Doesn't allocate, which is nice

This parser is not meant for any usecase where you're not certain that the document is well-formed, because it reports errors by simply ending the event stream early.

This parser may be useful for parsing machine-readable specifications that use XML such as Wayland and Vulkan.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.