6 releases

0.1.6 Mar 12, 2023
0.1.5 Aug 6, 2022
0.1.4 Jul 20, 2022

#3 in #non

MIT/Apache

29KB
685 lines

xml1

This create provides a sane, non compliant xml parser without allocations. I just can't describe it better than this.

xml is a great format and is expecially good for describing interfaces, witch are things inside other things with some attributes, but it has a few too many crazy features that bloat everything, CDATA, namespaces to name a few.

By the way don't worry about the unsafe's inside here it was mostly copied over from std.

Fork it!

I tried to keep the design the simple as possible, you should be able fork it and add any features that you want.

Milestones

  • Parse a "xml"
  • Better error handling with codespan-reporting
  • Don't panic
  • Fuzzed, can't panic, can't leak

lib.rs:

Basic usage is:

for evn in XmlIter::from("<a min=\"0, 0\">Some Text</a>") {
    dbg!(evn);
    // do something with evn
}

You may want to keep a stack around to push values and modify it's attributes.

Less than sign '<' must be escaped during texts sequeces

No runtime deps